AWS SDK for C++  1.9.123
AWS SDK for C++
LaunchTemplateConfig.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const FleetLaunchTemplateSpecification& GetLaunchTemplateSpecification() const{ return m_launchTemplateSpecification; }
48 
52  inline bool LaunchTemplateSpecificationHasBeenSet() const { return m_launchTemplateSpecificationHasBeenSet; }
53 
57  inline void SetLaunchTemplateSpecification(const FleetLaunchTemplateSpecification& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = value; }
58 
62  inline void SetLaunchTemplateSpecification(FleetLaunchTemplateSpecification&& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = std::move(value); }
63 
67  inline LaunchTemplateConfig& WithLaunchTemplateSpecification(const FleetLaunchTemplateSpecification& value) { SetLaunchTemplateSpecification(value); return *this;}
68 
72  inline LaunchTemplateConfig& WithLaunchTemplateSpecification(FleetLaunchTemplateSpecification&& value) { SetLaunchTemplateSpecification(std::move(value)); return *this;}
73 
74 
79  inline const Aws::Vector<LaunchTemplateOverrides>& GetOverrides() const{ return m_overrides; }
80 
85  inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
86 
91  inline void SetOverrides(const Aws::Vector<LaunchTemplateOverrides>& value) { m_overridesHasBeenSet = true; m_overrides = value; }
92 
97  inline void SetOverrides(Aws::Vector<LaunchTemplateOverrides>&& value) { m_overridesHasBeenSet = true; m_overrides = std::move(value); }
98 
103  inline LaunchTemplateConfig& WithOverrides(const Aws::Vector<LaunchTemplateOverrides>& value) { SetOverrides(value); return *this;}
104 
109  inline LaunchTemplateConfig& WithOverrides(Aws::Vector<LaunchTemplateOverrides>&& value) { SetOverrides(std::move(value)); return *this;}
110 
115  inline LaunchTemplateConfig& AddOverrides(const LaunchTemplateOverrides& value) { m_overridesHasBeenSet = true; m_overrides.push_back(value); return *this; }
116 
121  inline LaunchTemplateConfig& AddOverrides(LaunchTemplateOverrides&& value) { m_overridesHasBeenSet = true; m_overrides.push_back(std::move(value)); return *this; }
122 
123  private:
124 
125  FleetLaunchTemplateSpecification m_launchTemplateSpecification;
126  bool m_launchTemplateSpecificationHasBeenSet;
127 
129  bool m_overridesHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace EC2
134 } // namespace Aws
Aws::EC2::Model::LaunchTemplateConfig::AddOverrides
LaunchTemplateConfig & AddOverrides(LaunchTemplateOverrides &&value)
Definition: LaunchTemplateConfig.h:121
Aws::EC2::Model::LaunchTemplateConfig
Definition: LaunchTemplateConfig.h:34
Aws::EC2::Model::LaunchTemplateConfig::SetLaunchTemplateSpecification
void SetLaunchTemplateSpecification(FleetLaunchTemplateSpecification &&value)
Definition: LaunchTemplateConfig.h:62
Aws::EC2::Model::LaunchTemplateConfig::SetLaunchTemplateSpecification
void SetLaunchTemplateSpecification(const FleetLaunchTemplateSpecification &value)
Definition: LaunchTemplateConfig.h:57
Aws::EC2::Model::LaunchTemplateConfig::OverridesHasBeenSet
bool OverridesHasBeenSet() const
Definition: LaunchTemplateConfig.h:85
Aws::EC2::Model::LaunchTemplateConfig::LaunchTemplateConfig
LaunchTemplateConfig()
Aws::EC2::Model::LaunchTemplateConfig::GetOverrides
const Aws::Vector< LaunchTemplateOverrides > & GetOverrides() const
Definition: LaunchTemplateConfig.h:79
Aws::EC2::Model::LaunchTemplateConfig::AddOverrides
LaunchTemplateConfig & AddOverrides(const LaunchTemplateOverrides &value)
Definition: LaunchTemplateConfig.h:115
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplateConfig::LaunchTemplateSpecificationHasBeenSet
bool LaunchTemplateSpecificationHasBeenSet() const
Definition: LaunchTemplateConfig.h:52
Aws::EC2::Model::LaunchTemplateConfig::GetLaunchTemplateSpecification
const FleetLaunchTemplateSpecification & GetLaunchTemplateSpecification() const
Definition: LaunchTemplateConfig.h:47
Aws::EC2::Model::LaunchTemplateConfig::WithLaunchTemplateSpecification
LaunchTemplateConfig & WithLaunchTemplateSpecification(const FleetLaunchTemplateSpecification &value)
Definition: LaunchTemplateConfig.h:67
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::FleetLaunchTemplateSpecification
Definition: FleetLaunchTemplateSpecification.h:37
AWSVector.h
Aws::EC2::Model::LaunchTemplateConfig::WithOverrides
LaunchTemplateConfig & WithOverrides(Aws::Vector< LaunchTemplateOverrides > &&value)
Definition: LaunchTemplateConfig.h:109
Aws::EC2::Model::LaunchTemplateConfig::WithLaunchTemplateSpecification
LaunchTemplateConfig & WithLaunchTemplateSpecification(FleetLaunchTemplateSpecification &&value)
Definition: LaunchTemplateConfig.h:72
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateConfig::WithOverrides
LaunchTemplateConfig & WithOverrides(const Aws::Vector< LaunchTemplateOverrides > &value)
Definition: LaunchTemplateConfig.h:103
Aws::EC2::Model::LaunchTemplateConfig::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
LaunchTemplateOverrides.h
Aws::EC2::Model::LaunchTemplateConfig::SetOverrides
void SetOverrides(Aws::Vector< LaunchTemplateOverrides > &&value)
Definition: LaunchTemplateConfig.h:97
FleetLaunchTemplateSpecification.h
Aws::EC2::Model::LaunchTemplateConfig::operator=
LaunchTemplateConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LaunchTemplateConfig::SetOverrides
void SetOverrides(const Aws::Vector< LaunchTemplateOverrides > &value)
Definition: LaunchTemplateConfig.h:91
Aws::EC2::Model::LaunchTemplateOverrides
Definition: LaunchTemplateOverrides.h:33
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateConfig::LaunchTemplateConfig
LaunchTemplateConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateConfig::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const