AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
LaunchTemplate.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/LaunchTemplateOverrides.h>
9#include <aws/autoscaling/model/LaunchTemplateSpecification.h>
10#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace AutoScaling {
22namespace Model {
23
31 public:
32 AWS_AUTOSCALING_API LaunchTemplate() = default;
33 AWS_AUTOSCALING_API LaunchTemplate(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_AUTOSCALING_API LaunchTemplate& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const LaunchTemplateSpecification& GetLaunchTemplateSpecification() const { return m_launchTemplateSpecification; }
44 inline bool LaunchTemplateSpecificationHasBeenSet() const { return m_launchTemplateSpecificationHasBeenSet; }
45 template <typename LaunchTemplateSpecificationT = LaunchTemplateSpecification>
46 void SetLaunchTemplateSpecification(LaunchTemplateSpecificationT&& value) {
47 m_launchTemplateSpecificationHasBeenSet = true;
48 m_launchTemplateSpecification = std::forward<LaunchTemplateSpecificationT>(value);
49 }
50 template <typename LaunchTemplateSpecificationT = LaunchTemplateSpecification>
51 LaunchTemplate& WithLaunchTemplateSpecification(LaunchTemplateSpecificationT&& value) {
52 SetLaunchTemplateSpecification(std::forward<LaunchTemplateSpecificationT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<LaunchTemplateOverrides>& GetOverrides() const { return m_overrides; }
63 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
64 template <typename OverridesT = Aws::Vector<LaunchTemplateOverrides>>
65 void SetOverrides(OverridesT&& value) {
66 m_overridesHasBeenSet = true;
67 m_overrides = std::forward<OverridesT>(value);
68 }
69 template <typename OverridesT = Aws::Vector<LaunchTemplateOverrides>>
70 LaunchTemplate& WithOverrides(OverridesT&& value) {
71 SetOverrides(std::forward<OverridesT>(value));
72 return *this;
73 }
74 template <typename OverridesT = LaunchTemplateOverrides>
75 LaunchTemplate& AddOverrides(OverridesT&& value) {
76 m_overridesHasBeenSet = true;
77 m_overrides.emplace_back(std::forward<OverridesT>(value));
78 return *this;
79 }
81 private:
82 LaunchTemplateSpecification m_launchTemplateSpecification;
83
85 bool m_launchTemplateSpecificationHasBeenSet = false;
86 bool m_overridesHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace AutoScaling
91} // namespace Aws
LaunchTemplate & AddOverrides(OverridesT &&value)
const Aws::Vector< LaunchTemplateOverrides > & GetOverrides() const
AWS_AUTOSCALING_API LaunchTemplate()=default
void SetLaunchTemplateSpecification(LaunchTemplateSpecificationT &&value)
AWS_AUTOSCALING_API LaunchTemplate & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplate & WithOverrides(OverridesT &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API LaunchTemplate(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOverrides(OverridesT &&value)
LaunchTemplate & WithLaunchTemplateSpecification(LaunchTemplateSpecificationT &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const LaunchTemplateSpecification & GetLaunchTemplateSpecification() const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream