AWS SDK for C++  0.12.9
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 
83  inline const LayerType& GetType() const{ return m_type; }
84 
89  inline void SetType(const LayerType& value) { m_typeHasBeenSet = true; m_type = value; }
90 
95  inline void SetType(LayerType&& value) { m_typeHasBeenSet = true; m_type = value; }
96 
101  inline CreateLayerRequest& WithType(const LayerType& value) { SetType(value); return *this;}
102 
107  inline CreateLayerRequest& WithType(LayerType&& value) { SetType(value); return *this;}
108 
112  inline const Aws::String& GetName() const{ return m_name; }
113 
117  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
118 
122  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
123 
127  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
128 
132  inline CreateLayerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
133 
137  inline CreateLayerRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
138 
142  inline CreateLayerRequest& WithName(const char* value) { SetName(value); return *this;}
143 
154  inline const Aws::String& GetShortname() const{ return m_shortname; }
155 
166  inline void SetShortname(const Aws::String& value) { m_shortnameHasBeenSet = true; m_shortname = value; }
167 
178  inline void SetShortname(Aws::String&& value) { m_shortnameHasBeenSet = true; m_shortname = value; }
179 
190  inline void SetShortname(const char* value) { m_shortnameHasBeenSet = true; m_shortname.assign(value); }
191 
202  inline CreateLayerRequest& WithShortname(const Aws::String& value) { SetShortname(value); return *this;}
203 
214  inline CreateLayerRequest& WithShortname(Aws::String&& value) { SetShortname(value); return *this;}
215 
226  inline CreateLayerRequest& WithShortname(const char* value) { SetShortname(value); return *this;}
227 
233  inline const Aws::Map<LayerAttributesKeys, Aws::String>& GetAttributes() const{ return m_attributes; }
234 
240  inline void SetAttributes(const Aws::Map<LayerAttributesKeys, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
241 
247  inline void SetAttributes(Aws::Map<LayerAttributesKeys, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
248 
254  inline CreateLayerRequest& WithAttributes(const Aws::Map<LayerAttributesKeys, Aws::String>& value) { SetAttributes(value); return *this;}
255 
261  inline CreateLayerRequest& WithAttributes(Aws::Map<LayerAttributesKeys, Aws::String>&& value) { SetAttributes(value); return *this;}
262 
268  inline CreateLayerRequest& AddAttributes(const LayerAttributesKeys& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
269 
275  inline CreateLayerRequest& AddAttributes(LayerAttributesKeys&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
276 
282  inline CreateLayerRequest& AddAttributes(const LayerAttributesKeys& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
283 
289  inline CreateLayerRequest& AddAttributes(LayerAttributesKeys&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
290 
296  inline CreateLayerRequest& AddAttributes(LayerAttributesKeys&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
297 
303  inline CreateLayerRequest& AddAttributes(const LayerAttributesKeys& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
304 
311  inline const Aws::String& GetCustomInstanceProfileArn() const{ return m_customInstanceProfileArn; }
312 
319  inline void SetCustomInstanceProfileArn(const Aws::String& value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn = value; }
320 
327  inline void SetCustomInstanceProfileArn(Aws::String&& value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn = value; }
328 
335  inline void SetCustomInstanceProfileArn(const char* value) { m_customInstanceProfileArnHasBeenSet = true; m_customInstanceProfileArn.assign(value); }
336 
343  inline CreateLayerRequest& WithCustomInstanceProfileArn(const Aws::String& value) { SetCustomInstanceProfileArn(value); return *this;}
344 
351  inline CreateLayerRequest& WithCustomInstanceProfileArn(Aws::String&& value) { SetCustomInstanceProfileArn(value); return *this;}
352 
359  inline CreateLayerRequest& WithCustomInstanceProfileArn(const char* value) { SetCustomInstanceProfileArn(value); return *this;}
360 
369  inline const Aws::String& GetCustomJson() const{ return m_customJson; }
370 
379  inline void SetCustomJson(const Aws::String& value) { m_customJsonHasBeenSet = true; m_customJson = value; }
380 
389  inline void SetCustomJson(Aws::String&& value) { m_customJsonHasBeenSet = true; m_customJson = value; }
390 
399  inline void SetCustomJson(const char* value) { m_customJsonHasBeenSet = true; m_customJson.assign(value); }
400 
409  inline CreateLayerRequest& WithCustomJson(const Aws::String& value) { SetCustomJson(value); return *this;}
410 
419  inline CreateLayerRequest& WithCustomJson(Aws::String&& value) { SetCustomJson(value); return *this;}
420 
429  inline CreateLayerRequest& WithCustomJson(const char* value) { SetCustomJson(value); return *this;}
430 
434  inline const Aws::Vector<Aws::String>& GetCustomSecurityGroupIds() const{ return m_customSecurityGroupIds; }
435 
439  inline void SetCustomSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds = value; }
440 
444  inline void SetCustomSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds = value; }
445 
449  inline CreateLayerRequest& WithCustomSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetCustomSecurityGroupIds(value); return *this;}
450 
454  inline CreateLayerRequest& WithCustomSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetCustomSecurityGroupIds(value); return *this;}
455 
459  inline CreateLayerRequest& AddCustomSecurityGroupIds(const Aws::String& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.push_back(value); return *this; }
460 
464  inline CreateLayerRequest& AddCustomSecurityGroupIds(Aws::String&& value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.push_back(value); return *this; }
465 
469  inline CreateLayerRequest& AddCustomSecurityGroupIds(const char* value) { m_customSecurityGroupIdsHasBeenSet = true; m_customSecurityGroupIds.push_back(value); return *this; }
470 
475  inline const Aws::Vector<Aws::String>& GetPackages() const{ return m_packages; }
476 
481  inline void SetPackages(const Aws::Vector<Aws::String>& value) { m_packagesHasBeenSet = true; m_packages = value; }
482 
487  inline void SetPackages(Aws::Vector<Aws::String>&& value) { m_packagesHasBeenSet = true; m_packages = value; }
488 
493  inline CreateLayerRequest& WithPackages(const Aws::Vector<Aws::String>& value) { SetPackages(value); return *this;}
494 
499  inline CreateLayerRequest& WithPackages(Aws::Vector<Aws::String>&& value) { SetPackages(value); return *this;}
500 
505  inline CreateLayerRequest& AddPackages(const Aws::String& value) { m_packagesHasBeenSet = true; m_packages.push_back(value); return *this; }
506 
511  inline CreateLayerRequest& AddPackages(Aws::String&& value) { m_packagesHasBeenSet = true; m_packages.push_back(value); return *this; }
512 
517  inline CreateLayerRequest& AddPackages(const char* value) { m_packagesHasBeenSet = true; m_packages.push_back(value); return *this; }
518 
523  inline const Aws::Vector<VolumeConfiguration>& GetVolumeConfigurations() const{ return m_volumeConfigurations; }
524 
529  inline void SetVolumeConfigurations(const Aws::Vector<VolumeConfiguration>& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations = value; }
530 
535  inline void SetVolumeConfigurations(Aws::Vector<VolumeConfiguration>&& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations = value; }
536 
541  inline CreateLayerRequest& WithVolumeConfigurations(const Aws::Vector<VolumeConfiguration>& value) { SetVolumeConfigurations(value); return *this;}
542 
547  inline CreateLayerRequest& WithVolumeConfigurations(Aws::Vector<VolumeConfiguration>&& value) { SetVolumeConfigurations(value); return *this;}
548 
553  inline CreateLayerRequest& AddVolumeConfigurations(const VolumeConfiguration& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations.push_back(value); return *this; }
554 
559  inline CreateLayerRequest& AddVolumeConfigurations(VolumeConfiguration&& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations.push_back(value); return *this; }
560 
564  inline bool GetEnableAutoHealing() const{ return m_enableAutoHealing; }
565 
569  inline void SetEnableAutoHealing(bool value) { m_enableAutoHealingHasBeenSet = true; m_enableAutoHealing = value; }
570 
574  inline CreateLayerRequest& WithEnableAutoHealing(bool value) { SetEnableAutoHealing(value); return *this;}
575 
583  inline bool GetAutoAssignElasticIps() const{ return m_autoAssignElasticIps; }
584 
592  inline void SetAutoAssignElasticIps(bool value) { m_autoAssignElasticIpsHasBeenSet = true; m_autoAssignElasticIps = value; }
593 
601  inline CreateLayerRequest& WithAutoAssignElasticIps(bool value) { SetAutoAssignElasticIps(value); return *this;}
602 
609  inline bool GetAutoAssignPublicIps() const{ return m_autoAssignPublicIps; }
610 
617  inline void SetAutoAssignPublicIps(bool value) { m_autoAssignPublicIpsHasBeenSet = true; m_autoAssignPublicIps = value; }
618 
625  inline CreateLayerRequest& WithAutoAssignPublicIps(bool value) { SetAutoAssignPublicIps(value); return *this;}
626 
631  inline const Recipes& GetCustomRecipes() const{ return m_customRecipes; }
632 
637  inline void SetCustomRecipes(const Recipes& value) { m_customRecipesHasBeenSet = true; m_customRecipes = value; }
638 
643  inline void SetCustomRecipes(Recipes&& value) { m_customRecipesHasBeenSet = true; m_customRecipes = value; }
644 
649  inline CreateLayerRequest& WithCustomRecipes(const Recipes& value) { SetCustomRecipes(value); return *this;}
650 
655  inline CreateLayerRequest& WithCustomRecipes(Recipes&& value) { SetCustomRecipes(value); return *this;}
656 
668  inline bool GetInstallUpdatesOnBoot() const{ return m_installUpdatesOnBoot; }
669 
681  inline void SetInstallUpdatesOnBoot(bool value) { m_installUpdatesOnBootHasBeenSet = true; m_installUpdatesOnBoot = value; }
682 
694  inline CreateLayerRequest& WithInstallUpdatesOnBoot(bool value) { SetInstallUpdatesOnBoot(value); return *this;}
695 
699  inline bool GetUseEbsOptimizedInstances() const{ return m_useEbsOptimizedInstances; }
700 
704  inline void SetUseEbsOptimizedInstances(bool value) { m_useEbsOptimizedInstancesHasBeenSet = true; m_useEbsOptimizedInstances = value; }
705 
709  inline CreateLayerRequest& WithUseEbsOptimizedInstances(bool value) { SetUseEbsOptimizedInstances(value); return *this;}
710 
716  inline const LifecycleEventConfiguration& GetLifecycleEventConfiguration() const{ return m_lifecycleEventConfiguration; }
717 
723  inline void SetLifecycleEventConfiguration(const LifecycleEventConfiguration& value) { m_lifecycleEventConfigurationHasBeenSet = true; m_lifecycleEventConfiguration = value; }
724 
730  inline void SetLifecycleEventConfiguration(LifecycleEventConfiguration&& value) { m_lifecycleEventConfigurationHasBeenSet = true; m_lifecycleEventConfiguration = value; }
731 
737  inline CreateLayerRequest& WithLifecycleEventConfiguration(const LifecycleEventConfiguration& value) { SetLifecycleEventConfiguration(value); return *this;}
738 
744  inline CreateLayerRequest& WithLifecycleEventConfiguration(LifecycleEventConfiguration&& value) { SetLifecycleEventConfiguration(value); return *this;}
745 
746  private:
747  Aws::String m_stackId;
748  bool m_stackIdHasBeenSet;
749  LayerType m_type;
750  bool m_typeHasBeenSet;
751  Aws::String m_name;
752  bool m_nameHasBeenSet;
753  Aws::String m_shortname;
754  bool m_shortnameHasBeenSet;
756  bool m_attributesHasBeenSet;
757  Aws::String m_customInstanceProfileArn;
758  bool m_customInstanceProfileArnHasBeenSet;
759  Aws::String m_customJson;
760  bool m_customJsonHasBeenSet;
761  Aws::Vector<Aws::String> m_customSecurityGroupIds;
762  bool m_customSecurityGroupIdsHasBeenSet;
763  Aws::Vector<Aws::String> m_packages;
764  bool m_packagesHasBeenSet;
765  Aws::Vector<VolumeConfiguration> m_volumeConfigurations;
766  bool m_volumeConfigurationsHasBeenSet;
767  bool m_enableAutoHealing;
768  bool m_enableAutoHealingHasBeenSet;
769  bool m_autoAssignElasticIps;
770  bool m_autoAssignElasticIpsHasBeenSet;
771  bool m_autoAssignPublicIps;
772  bool m_autoAssignPublicIpsHasBeenSet;
773  Recipes m_customRecipes;
774  bool m_customRecipesHasBeenSet;
775  bool m_installUpdatesOnBoot;
776  bool m_installUpdatesOnBootHasBeenSet;
777  bool m_useEbsOptimizedInstances;
778  bool m_useEbsOptimizedInstancesHasBeenSet;
779  LifecycleEventConfiguration m_lifecycleEventConfiguration;
780  bool m_lifecycleEventConfigurationHasBeenSet;
781  };
782 
783 } // namespace Model
784 } // namespace OpsWorks
785 } // 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)