AWS SDK for C++  1.9.126
AWS SDK for C++
FleetLaunchTemplateConfig.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 FleetLaunchTemplateConfig& WithLaunchTemplateSpecification(const FleetLaunchTemplateSpecification& value) { SetLaunchTemplateSpecification(value); return *this;}
68 
72  inline FleetLaunchTemplateConfig& WithLaunchTemplateSpecification(FleetLaunchTemplateSpecification&& value) { SetLaunchTemplateSpecification(std::move(value)); return *this;}
73 
74 
79  inline const Aws::Vector<FleetLaunchTemplateOverrides>& GetOverrides() const{ return m_overrides; }
80 
85  inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
86 
91  inline void SetOverrides(const Aws::Vector<FleetLaunchTemplateOverrides>& value) { m_overridesHasBeenSet = true; m_overrides = value; }
92 
97  inline void SetOverrides(Aws::Vector<FleetLaunchTemplateOverrides>&& value) { m_overridesHasBeenSet = true; m_overrides = std::move(value); }
98 
103  inline FleetLaunchTemplateConfig& WithOverrides(const Aws::Vector<FleetLaunchTemplateOverrides>& value) { SetOverrides(value); return *this;}
104 
109  inline FleetLaunchTemplateConfig& WithOverrides(Aws::Vector<FleetLaunchTemplateOverrides>&& value) { SetOverrides(std::move(value)); return *this;}
110 
115  inline FleetLaunchTemplateConfig& AddOverrides(const FleetLaunchTemplateOverrides& value) { m_overridesHasBeenSet = true; m_overrides.push_back(value); return *this; }
116 
121  inline FleetLaunchTemplateConfig& AddOverrides(FleetLaunchTemplateOverrides&& 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::FleetLaunchTemplateConfig::OverridesHasBeenSet
bool OverridesHasBeenSet() const
Definition: FleetLaunchTemplateConfig.h:85
Aws::EC2::Model::FleetLaunchTemplateConfig::LaunchTemplateSpecificationHasBeenSet
bool LaunchTemplateSpecificationHasBeenSet() const
Definition: FleetLaunchTemplateConfig.h:52
Aws::EC2::Model::FleetLaunchTemplateConfig::GetOverrides
const Aws::Vector< FleetLaunchTemplateOverrides > & GetOverrides() const
Definition: FleetLaunchTemplateConfig.h:79
Aws::EC2::Model::FleetLaunchTemplateConfig::WithLaunchTemplateSpecification
FleetLaunchTemplateConfig & WithLaunchTemplateSpecification(FleetLaunchTemplateSpecification &&value)
Definition: FleetLaunchTemplateConfig.h:72
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::FleetLaunchTemplateConfig::SetLaunchTemplateSpecification
void SetLaunchTemplateSpecification(FleetLaunchTemplateSpecification &&value)
Definition: FleetLaunchTemplateConfig.h:62
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::FleetLaunchTemplateSpecification
Definition: FleetLaunchTemplateSpecification.h:37
Aws::EC2::Model::FleetLaunchTemplateConfig::AddOverrides
FleetLaunchTemplateConfig & AddOverrides(const FleetLaunchTemplateOverrides &value)
Definition: FleetLaunchTemplateConfig.h:115
Aws::EC2::Model::FleetLaunchTemplateConfig::WithOverrides
FleetLaunchTemplateConfig & WithOverrides(const Aws::Vector< FleetLaunchTemplateOverrides > &value)
Definition: FleetLaunchTemplateConfig.h:103
AWSVector.h
Aws::EC2::Model::FleetLaunchTemplateConfig::WithLaunchTemplateSpecification
FleetLaunchTemplateConfig & WithLaunchTemplateSpecification(const FleetLaunchTemplateSpecification &value)
Definition: FleetLaunchTemplateConfig.h:67
Aws::EC2::Model::FleetLaunchTemplateConfig::FleetLaunchTemplateConfig
FleetLaunchTemplateConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::FleetLaunchTemplateConfig
Definition: FleetLaunchTemplateConfig.h:34
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::FleetLaunchTemplateConfig::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::FleetLaunchTemplateConfig::SetOverrides
void SetOverrides(const Aws::Vector< FleetLaunchTemplateOverrides > &value)
Definition: FleetLaunchTemplateConfig.h:91
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::FleetLaunchTemplateConfig::WithOverrides
FleetLaunchTemplateConfig & WithOverrides(Aws::Vector< FleetLaunchTemplateOverrides > &&value)
Definition: FleetLaunchTemplateConfig.h:109
Aws::EC2::Model::FleetLaunchTemplateConfig::SetOverrides
void SetOverrides(Aws::Vector< FleetLaunchTemplateOverrides > &&value)
Definition: FleetLaunchTemplateConfig.h:97
Aws::EC2::Model::FleetLaunchTemplateConfig::operator=
FleetLaunchTemplateConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::FleetLaunchTemplateConfig::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
FleetLaunchTemplateSpecification.h
Aws::EC2::Model::FleetLaunchTemplateConfig::FleetLaunchTemplateConfig
FleetLaunchTemplateConfig()
Aws::EC2::Model::FleetLaunchTemplateOverrides
Definition: FleetLaunchTemplateOverrides.h:34
Aws
Definition: AccessManagementClient.h:15
FleetLaunchTemplateOverrides.h
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::FleetLaunchTemplateConfig::GetLaunchTemplateSpecification
const FleetLaunchTemplateSpecification & GetLaunchTemplateSpecification() const
Definition: FleetLaunchTemplateConfig.h:47
Aws::EC2::Model::FleetLaunchTemplateConfig::AddOverrides
FleetLaunchTemplateConfig & AddOverrides(FleetLaunchTemplateOverrides &&value)
Definition: FleetLaunchTemplateConfig.h:121
EC2_EXPORTS.h
Aws::EC2::Model::FleetLaunchTemplateConfig::SetLaunchTemplateSpecification
void SetLaunchTemplateSpecification(const FleetLaunchTemplateSpecification &value)
Definition: FleetLaunchTemplateConfig.h:57