AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchTemplateVersion.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ec2/model/ResponseLaunchTemplateData.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API LaunchTemplateVersion();
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; }
49 inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
50 inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
51 inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
52 inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
53 inline LaunchTemplateVersion& WithLaunchTemplateId(const Aws::String& value) { SetLaunchTemplateId(value); return *this;}
54 inline LaunchTemplateVersion& WithLaunchTemplateId(Aws::String&& value) { SetLaunchTemplateId(std::move(value)); return *this;}
55 inline LaunchTemplateVersion& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
57
59
62 inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
63 inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
64 inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
65 inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
66 inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
68 inline LaunchTemplateVersion& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;}
69 inline LaunchTemplateVersion& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
71
73
76 inline long long GetVersionNumber() const{ return m_versionNumber; }
77 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
78 inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
79 inline LaunchTemplateVersion& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;}
81
83
86 inline const Aws::String& GetVersionDescription() const{ return m_versionDescription; }
87 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
88 inline void SetVersionDescription(const Aws::String& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = value; }
89 inline void SetVersionDescription(Aws::String&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::move(value); }
90 inline void SetVersionDescription(const char* value) { m_versionDescriptionHasBeenSet = true; m_versionDescription.assign(value); }
92 inline LaunchTemplateVersion& WithVersionDescription(Aws::String&& value) { SetVersionDescription(std::move(value)); return *this;}
93 inline LaunchTemplateVersion& WithVersionDescription(const char* value) { SetVersionDescription(value); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
101 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
102 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
103 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
104 inline LaunchTemplateVersion& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
105 inline LaunchTemplateVersion& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
107
109
112 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
113 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
114 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
115 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
116 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
117 inline LaunchTemplateVersion& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
118 inline LaunchTemplateVersion& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
119 inline LaunchTemplateVersion& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
121
123
126 inline bool GetDefaultVersion() const{ return m_defaultVersion; }
127 inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
128 inline void SetDefaultVersion(bool value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = value; }
129 inline LaunchTemplateVersion& WithDefaultVersion(bool value) { SetDefaultVersion(value); return *this;}
131
133
136 inline const ResponseLaunchTemplateData& GetLaunchTemplateData() const{ return m_launchTemplateData; }
137 inline bool LaunchTemplateDataHasBeenSet() const { return m_launchTemplateDataHasBeenSet; }
138 inline void SetLaunchTemplateData(const ResponseLaunchTemplateData& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = value; }
139 inline void SetLaunchTemplateData(ResponseLaunchTemplateData&& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = std::move(value); }
143 private:
144
145 Aws::String m_launchTemplateId;
146 bool m_launchTemplateIdHasBeenSet = false;
147
148 Aws::String m_launchTemplateName;
149 bool m_launchTemplateNameHasBeenSet = false;
150
151 long long m_versionNumber;
152 bool m_versionNumberHasBeenSet = false;
153
154 Aws::String m_versionDescription;
155 bool m_versionDescriptionHasBeenSet = false;
156
157 Aws::Utils::DateTime m_createTime;
158 bool m_createTimeHasBeenSet = false;
159
160 Aws::String m_createdBy;
161 bool m_createdByHasBeenSet = false;
162
163 bool m_defaultVersion;
164 bool m_defaultVersionHasBeenSet = false;
165
166 ResponseLaunchTemplateData m_launchTemplateData;
167 bool m_launchTemplateDataHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace EC2
172} // namespace Aws
void SetCreateTime(const Aws::Utils::DateTime &value)
AWS_EC2_API LaunchTemplateVersion(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetLaunchTemplateId() const
LaunchTemplateVersion & WithCreatedBy(const char *value)
LaunchTemplateVersion & WithLaunchTemplateData(const ResponseLaunchTemplateData &value)
LaunchTemplateVersion & WithLaunchTemplateName(const char *value)
LaunchTemplateVersion & WithLaunchTemplateName(const Aws::String &value)
void SetVersionDescription(const Aws::String &value)
const Aws::Utils::DateTime & GetCreateTime() const
LaunchTemplateVersion & WithCreatedBy(const Aws::String &value)
void SetLaunchTemplateName(Aws::String &&value)
LaunchTemplateVersion & WithCreatedBy(Aws::String &&value)
LaunchTemplateVersion & WithLaunchTemplateName(Aws::String &&value)
LaunchTemplateVersion & WithCreateTime(const Aws::Utils::DateTime &value)
LaunchTemplateVersion & WithDefaultVersion(bool value)
LaunchTemplateVersion & WithCreateTime(Aws::Utils::DateTime &&value)
LaunchTemplateVersion & WithLaunchTemplateId(const Aws::String &value)
void SetVersionDescription(Aws::String &&value)
LaunchTemplateVersion & WithLaunchTemplateId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchTemplateVersion & WithVersionDescription(Aws::String &&value)
void SetCreateTime(Aws::Utils::DateTime &&value)
const ResponseLaunchTemplateData & GetLaunchTemplateData() const
void SetLaunchTemplateName(const Aws::String &value)
void SetLaunchTemplateData(ResponseLaunchTemplateData &&value)
AWS_EC2_API LaunchTemplateVersion & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateVersion & WithLaunchTemplateId(const char *value)
LaunchTemplateVersion & WithVersionDescription(const char *value)
LaunchTemplateVersion & WithVersionNumber(long long value)
const Aws::String & GetVersionDescription() const
void SetLaunchTemplateData(const ResponseLaunchTemplateData &value)
void SetCreatedBy(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetLaunchTemplateName() const
void SetLaunchTemplateId(const Aws::String &value)
LaunchTemplateVersion & WithLaunchTemplateData(ResponseLaunchTemplateData &&value)
LaunchTemplateVersion & WithVersionDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream