AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LaunchTemplateSpecification.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace AutoScaling
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_AUTOSCALING_API LaunchTemplateSpecification() = default;
40 AWS_AUTOSCALING_API LaunchTemplateSpecification(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
56 inline const Aws::String& GetLaunchTemplateId() const { return m_launchTemplateId; }
57 inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
58 template<typename LaunchTemplateIdT = Aws::String>
59 void SetLaunchTemplateId(LaunchTemplateIdT&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::forward<LaunchTemplateIdT>(value); }
60 template<typename LaunchTemplateIdT = Aws::String>
61 LaunchTemplateSpecification& WithLaunchTemplateId(LaunchTemplateIdT&& value) { SetLaunchTemplateId(std::forward<LaunchTemplateIdT>(value)); return *this;}
63
65
74 inline const Aws::String& GetLaunchTemplateName() const { return m_launchTemplateName; }
75 inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
76 template<typename LaunchTemplateNameT = Aws::String>
77 void SetLaunchTemplateName(LaunchTemplateNameT&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::forward<LaunchTemplateNameT>(value); }
78 template<typename LaunchTemplateNameT = Aws::String>
79 LaunchTemplateSpecification& WithLaunchTemplateName(LaunchTemplateNameT&& value) { SetLaunchTemplateName(std::forward<LaunchTemplateNameT>(value)); return *this;}
81
83
96 inline const Aws::String& GetVersion() const { return m_version; }
97 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
98 template<typename VersionT = Aws::String>
99 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
100 template<typename VersionT = Aws::String>
101 LaunchTemplateSpecification& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
103 private:
104
105 Aws::String m_launchTemplateId;
106 bool m_launchTemplateIdHasBeenSet = false;
107
108 Aws::String m_launchTemplateName;
109 bool m_launchTemplateNameHasBeenSet = false;
110
111 Aws::String m_version;
112 bool m_versionHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace AutoScaling
117} // namespace Aws
LaunchTemplateSpecification & WithLaunchTemplateId(LaunchTemplateIdT &&value)
AWS_AUTOSCALING_API LaunchTemplateSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API LaunchTemplateSpecification()=default
LaunchTemplateSpecification & WithLaunchTemplateName(LaunchTemplateNameT &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API LaunchTemplateSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateSpecification & WithVersion(VersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream