AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LaunchTemplateSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
28 public:
29 AWS_EC2_API LaunchTemplateSpecification() = default;
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
41 inline const Aws::String& GetLaunchTemplateId() const { return m_launchTemplateId; }
42 inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
43 template <typename LaunchTemplateIdT = Aws::String>
44 void SetLaunchTemplateId(LaunchTemplateIdT&& value) {
45 m_launchTemplateIdHasBeenSet = true;
46 m_launchTemplateId = std::forward<LaunchTemplateIdT>(value);
47 }
48 template <typename LaunchTemplateIdT = Aws::String>
50 SetLaunchTemplateId(std::forward<LaunchTemplateIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetLaunchTemplateName() const { return m_launchTemplateName; }
61 inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
62 template <typename LaunchTemplateNameT = Aws::String>
63 void SetLaunchTemplateName(LaunchTemplateNameT&& value) {
64 m_launchTemplateNameHasBeenSet = true;
65 m_launchTemplateName = std::forward<LaunchTemplateNameT>(value);
66 }
67 template <typename LaunchTemplateNameT = Aws::String>
69 SetLaunchTemplateName(std::forward<LaunchTemplateNameT>(value));
70 return *this;
71 }
73
75
82 inline const Aws::String& GetVersion() const { return m_version; }
83 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
84 template <typename VersionT = Aws::String>
85 void SetVersion(VersionT&& value) {
86 m_versionHasBeenSet = true;
87 m_version = std::forward<VersionT>(value);
88 }
89 template <typename VersionT = Aws::String>
91 SetVersion(std::forward<VersionT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_launchTemplateId;
97
98 Aws::String m_launchTemplateName;
99
100 Aws::String m_version;
101 bool m_launchTemplateIdHasBeenSet = false;
102 bool m_launchTemplateNameHasBeenSet = false;
103 bool m_versionHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace EC2
108} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API LaunchTemplateSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API LaunchTemplateSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateSpecification & WithLaunchTemplateId(LaunchTemplateIdT &&value)
AWS_EC2_API LaunchTemplateSpecification()=default
LaunchTemplateSpecification & WithVersion(VersionT &&value)
LaunchTemplateSpecification & WithLaunchTemplateName(LaunchTemplateNameT &&value)
void SetLaunchTemplateName(LaunchTemplateNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream