AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchTemplateConfig.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/LaunchTemplateOverrides.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:
36 AWS_EC2_API LaunchTemplateConfig();
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
50 inline const FleetLaunchTemplateSpecification& GetLaunchTemplateSpecification() const{ return m_launchTemplateSpecification; }
51 inline bool LaunchTemplateSpecificationHasBeenSet() const { return m_launchTemplateSpecificationHasBeenSet; }
52 inline void SetLaunchTemplateSpecification(const FleetLaunchTemplateSpecification& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = value; }
53 inline void SetLaunchTemplateSpecification(FleetLaunchTemplateSpecification&& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = std::move(value); }
57
59
63 inline const Aws::Vector<LaunchTemplateOverrides>& GetOverrides() const{ return m_overrides; }
64 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
65 inline void SetOverrides(const Aws::Vector<LaunchTemplateOverrides>& value) { m_overridesHasBeenSet = true; m_overrides = value; }
66 inline void SetOverrides(Aws::Vector<LaunchTemplateOverrides>&& value) { m_overridesHasBeenSet = true; m_overrides = std::move(value); }
68 inline LaunchTemplateConfig& WithOverrides(Aws::Vector<LaunchTemplateOverrides>&& value) { SetOverrides(std::move(value)); return *this;}
69 inline LaunchTemplateConfig& AddOverrides(const LaunchTemplateOverrides& value) { m_overridesHasBeenSet = true; m_overrides.push_back(value); return *this; }
70 inline LaunchTemplateConfig& AddOverrides(LaunchTemplateOverrides&& value) { m_overridesHasBeenSet = true; m_overrides.push_back(std::move(value)); return *this; }
72 private:
73
74 FleetLaunchTemplateSpecification m_launchTemplateSpecification;
75 bool m_launchTemplateSpecificationHasBeenSet = false;
76
78 bool m_overridesHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace EC2
83} // namespace Aws
LaunchTemplateConfig & WithLaunchTemplateSpecification(const FleetLaunchTemplateSpecification &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchTemplateConfig & WithOverrides(const Aws::Vector< LaunchTemplateOverrides > &value)
const FleetLaunchTemplateSpecification & GetLaunchTemplateSpecification() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API LaunchTemplateConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API LaunchTemplateConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateConfig & WithLaunchTemplateSpecification(FleetLaunchTemplateSpecification &&value)
const Aws::Vector< LaunchTemplateOverrides > & GetOverrides() const
void SetOverrides(const Aws::Vector< LaunchTemplateOverrides > &value)
void SetLaunchTemplateSpecification(FleetLaunchTemplateSpecification &&value)
void SetLaunchTemplateSpecification(const FleetLaunchTemplateSpecification &value)
LaunchTemplateConfig & AddOverrides(LaunchTemplateOverrides &&value)
LaunchTemplateConfig & WithOverrides(Aws::Vector< LaunchTemplateOverrides > &&value)
void SetOverrides(Aws::Vector< LaunchTemplateOverrides > &&value)
LaunchTemplateConfig & AddOverrides(const LaunchTemplateOverrides &value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream