AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace AutoScaling {
20namespace Model {
21
33 public:
34 AWS_AUTOSCALING_API LaunchTemplateSpecification() = default;
35 AWS_AUTOSCALING_API LaunchTemplateSpecification(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
50 inline const Aws::String& GetLaunchTemplateId() const { return m_launchTemplateId; }
51 inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
52 template <typename LaunchTemplateIdT = Aws::String>
53 void SetLaunchTemplateId(LaunchTemplateIdT&& value) {
54 m_launchTemplateIdHasBeenSet = true;
55 m_launchTemplateId = std::forward<LaunchTemplateIdT>(value);
56 }
57 template <typename LaunchTemplateIdT = Aws::String>
59 SetLaunchTemplateId(std::forward<LaunchTemplateIdT>(value));
60 return *this;
61 }
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) {
78 m_launchTemplateNameHasBeenSet = true;
79 m_launchTemplateName = std::forward<LaunchTemplateNameT>(value);
80 }
81 template <typename LaunchTemplateNameT = Aws::String>
83 SetLaunchTemplateName(std::forward<LaunchTemplateNameT>(value));
84 return *this;
85 }
87
89
102 inline const Aws::String& GetVersion() const { return m_version; }
103 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
104 template <typename VersionT = Aws::String>
105 void SetVersion(VersionT&& value) {
106 m_versionHasBeenSet = true;
107 m_version = std::forward<VersionT>(value);
108 }
109 template <typename VersionT = Aws::String>
111 SetVersion(std::forward<VersionT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_launchTemplateId;
117 bool m_launchTemplateIdHasBeenSet = false;
118
119 Aws::String m_launchTemplateName;
120 bool m_launchTemplateNameHasBeenSet = false;
121
122 Aws::String m_version;
123 bool m_versionHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace AutoScaling
128} // 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