AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FleetLaunchTemplateConfig.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/FleetLaunchTemplateSpecification.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/FleetLaunchTemplateOverrides.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const FleetLaunchTemplateSpecification& GetLaunchTemplateSpecification() const{ return m_launchTemplateSpecification; }
49 inline bool LaunchTemplateSpecificationHasBeenSet() const { return m_launchTemplateSpecificationHasBeenSet; }
50 inline void SetLaunchTemplateSpecification(const FleetLaunchTemplateSpecification& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = value; }
51 inline void SetLaunchTemplateSpecification(FleetLaunchTemplateSpecification&& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = std::move(value); }
55
57
61 inline const Aws::Vector<FleetLaunchTemplateOverrides>& GetOverrides() const{ return m_overrides; }
62 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
63 inline void SetOverrides(const Aws::Vector<FleetLaunchTemplateOverrides>& value) { m_overridesHasBeenSet = true; m_overrides = value; }
64 inline void SetOverrides(Aws::Vector<FleetLaunchTemplateOverrides>&& value) { m_overridesHasBeenSet = true; m_overrides = std::move(value); }
67 inline FleetLaunchTemplateConfig& AddOverrides(const FleetLaunchTemplateOverrides& value) { m_overridesHasBeenSet = true; m_overrides.push_back(value); return *this; }
68 inline FleetLaunchTemplateConfig& AddOverrides(FleetLaunchTemplateOverrides&& value) { m_overridesHasBeenSet = true; m_overrides.push_back(std::move(value)); return *this; }
70 private:
71
72 FleetLaunchTemplateSpecification m_launchTemplateSpecification;
73 bool m_launchTemplateSpecificationHasBeenSet = false;
74
76 bool m_overridesHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
AWS_EC2_API FleetLaunchTemplateConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLaunchTemplateSpecification(const FleetLaunchTemplateSpecification &value)
FleetLaunchTemplateConfig & WithOverrides(const Aws::Vector< FleetLaunchTemplateOverrides > &value)
void SetOverrides(Aws::Vector< FleetLaunchTemplateOverrides > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< FleetLaunchTemplateOverrides > & GetOverrides() const
void SetLaunchTemplateSpecification(FleetLaunchTemplateSpecification &&value)
void SetOverrides(const Aws::Vector< FleetLaunchTemplateOverrides > &value)
AWS_EC2_API FleetLaunchTemplateConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
FleetLaunchTemplateConfig & WithLaunchTemplateSpecification(const FleetLaunchTemplateSpecification &value)
FleetLaunchTemplateConfig & WithLaunchTemplateSpecification(FleetLaunchTemplateSpecification &&value)
FleetLaunchTemplateConfig & WithOverrides(Aws::Vector< FleetLaunchTemplateOverrides > &&value)
const FleetLaunchTemplateSpecification & GetLaunchTemplateSpecification() const
FleetLaunchTemplateConfig & AddOverrides(const FleetLaunchTemplateOverrides &value)
FleetLaunchTemplateConfig & AddOverrides(FleetLaunchTemplateOverrides &&value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream