AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
LaunchTemplate.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/autoscaling/model/LaunchTemplateSpecification.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/autoscaling/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 AutoScaling
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_AUTOSCALING_API LaunchTemplate() = default;
38 AWS_AUTOSCALING_API LaunchTemplate(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_AUTOSCALING_API LaunchTemplate& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const LaunchTemplateSpecification& GetLaunchTemplateSpecification() const { return m_launchTemplateSpecification; }
50 inline bool LaunchTemplateSpecificationHasBeenSet() const { return m_launchTemplateSpecificationHasBeenSet; }
51 template<typename LaunchTemplateSpecificationT = LaunchTemplateSpecification>
52 void SetLaunchTemplateSpecification(LaunchTemplateSpecificationT&& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = std::forward<LaunchTemplateSpecificationT>(value); }
53 template<typename LaunchTemplateSpecificationT = LaunchTemplateSpecification>
54 LaunchTemplate& WithLaunchTemplateSpecification(LaunchTemplateSpecificationT&& value) { SetLaunchTemplateSpecification(std::forward<LaunchTemplateSpecificationT>(value)); return *this;}
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) { m_overridesHasBeenSet = true; m_overrides = std::forward<OverridesT>(value); }
66 template<typename OverridesT = Aws::Vector<LaunchTemplateOverrides>>
67 LaunchTemplate& WithOverrides(OverridesT&& value) { SetOverrides(std::forward<OverridesT>(value)); return *this;}
68 template<typename OverridesT = LaunchTemplateOverrides>
69 LaunchTemplate& AddOverrides(OverridesT&& value) { m_overridesHasBeenSet = true; m_overrides.emplace_back(std::forward<OverridesT>(value)); return *this; }
71 private:
72
73 LaunchTemplateSpecification m_launchTemplateSpecification;
74 bool m_launchTemplateSpecificationHasBeenSet = false;
75
77 bool m_overridesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace AutoScaling
82} // 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