AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLaunchTemplateSpecification(const LaunchTemplateSpecification& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = value; }
52 inline void SetLaunchTemplateSpecification(LaunchTemplateSpecification&& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = std::move(value); }
56
58
62 inline const Aws::Vector<LaunchTemplateOverrides>& GetOverrides() const{ return m_overrides; }
63 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
64 inline void SetOverrides(const Aws::Vector<LaunchTemplateOverrides>& value) { m_overridesHasBeenSet = true; m_overrides = value; }
65 inline void SetOverrides(Aws::Vector<LaunchTemplateOverrides>&& value) { m_overridesHasBeenSet = true; m_overrides = std::move(value); }
67 inline LaunchTemplate& WithOverrides(Aws::Vector<LaunchTemplateOverrides>&& value) { SetOverrides(std::move(value)); return *this;}
68 inline LaunchTemplate& AddOverrides(const LaunchTemplateOverrides& value) { m_overridesHasBeenSet = true; m_overrides.push_back(value); return *this; }
69 inline LaunchTemplate& AddOverrides(LaunchTemplateOverrides&& value) { m_overridesHasBeenSet = true; m_overrides.push_back(std::move(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
void SetOverrides(const Aws::Vector< LaunchTemplateOverrides > &value)
const Aws::Vector< LaunchTemplateOverrides > & GetOverrides() const
LaunchTemplate & WithOverrides(const Aws::Vector< LaunchTemplateOverrides > &value)
LaunchTemplate & WithLaunchTemplateSpecification(LaunchTemplateSpecification &&value)
void SetOverrides(Aws::Vector< LaunchTemplateOverrides > &&value)
LaunchTemplate & WithLaunchTemplateSpecification(const LaunchTemplateSpecification &value)
void SetLaunchTemplateSpecification(LaunchTemplateSpecification &&value)
AWS_AUTOSCALING_API LaunchTemplate & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplate & WithOverrides(Aws::Vector< LaunchTemplateOverrides > &&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)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchTemplate & AddOverrides(LaunchTemplateOverrides &&value)
LaunchTemplate & AddOverrides(const LaunchTemplateOverrides &value)
const LaunchTemplateSpecification & GetLaunchTemplateSpecification() const
void SetLaunchTemplateSpecification(const LaunchTemplateSpecification &value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream