AWS SDK for C++  1.9.67
AWS SDK for C++
LaunchTemplateVersion.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; }
48 
52  inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
53 
57  inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
58 
62  inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
63 
67  inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
68 
72  inline LaunchTemplateVersion& WithLaunchTemplateId(const Aws::String& value) { SetLaunchTemplateId(value); return *this;}
73 
77  inline LaunchTemplateVersion& WithLaunchTemplateId(Aws::String&& value) { SetLaunchTemplateId(std::move(value)); return *this;}
78 
82  inline LaunchTemplateVersion& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
83 
84 
88  inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
89 
93  inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
94 
98  inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
99 
103  inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
104 
108  inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
109 
113  inline LaunchTemplateVersion& WithLaunchTemplateName(const Aws::String& value) { SetLaunchTemplateName(value); return *this;}
114 
118  inline LaunchTemplateVersion& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;}
119 
123  inline LaunchTemplateVersion& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
124 
125 
129  inline long long GetVersionNumber() const{ return m_versionNumber; }
130 
134  inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
135 
139  inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
140 
144  inline LaunchTemplateVersion& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;}
145 
146 
150  inline const Aws::String& GetVersionDescription() const{ return m_versionDescription; }
151 
155  inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
156 
160  inline void SetVersionDescription(const Aws::String& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = value; }
161 
165  inline void SetVersionDescription(Aws::String&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::move(value); }
166 
170  inline void SetVersionDescription(const char* value) { m_versionDescriptionHasBeenSet = true; m_versionDescription.assign(value); }
171 
175  inline LaunchTemplateVersion& WithVersionDescription(const Aws::String& value) { SetVersionDescription(value); return *this;}
176 
180  inline LaunchTemplateVersion& WithVersionDescription(Aws::String&& value) { SetVersionDescription(std::move(value)); return *this;}
181 
185  inline LaunchTemplateVersion& WithVersionDescription(const char* value) { SetVersionDescription(value); return *this;}
186 
187 
191  inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
192 
196  inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
197 
201  inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
202 
206  inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
207 
211  inline LaunchTemplateVersion& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
212 
216  inline LaunchTemplateVersion& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
217 
218 
222  inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
223 
227  inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
228 
232  inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
233 
237  inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
238 
242  inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
243 
247  inline LaunchTemplateVersion& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
248 
252  inline LaunchTemplateVersion& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
253 
257  inline LaunchTemplateVersion& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
258 
259 
263  inline bool GetDefaultVersion() const{ return m_defaultVersion; }
264 
268  inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
269 
273  inline void SetDefaultVersion(bool value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = value; }
274 
278  inline LaunchTemplateVersion& WithDefaultVersion(bool value) { SetDefaultVersion(value); return *this;}
279 
280 
284  inline const ResponseLaunchTemplateData& GetLaunchTemplateData() const{ return m_launchTemplateData; }
285 
289  inline bool LaunchTemplateDataHasBeenSet() const { return m_launchTemplateDataHasBeenSet; }
290 
294  inline void SetLaunchTemplateData(const ResponseLaunchTemplateData& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = value; }
295 
299  inline void SetLaunchTemplateData(ResponseLaunchTemplateData&& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = std::move(value); }
300 
304  inline LaunchTemplateVersion& WithLaunchTemplateData(const ResponseLaunchTemplateData& value) { SetLaunchTemplateData(value); return *this;}
305 
309  inline LaunchTemplateVersion& WithLaunchTemplateData(ResponseLaunchTemplateData&& value) { SetLaunchTemplateData(std::move(value)); return *this;}
310 
311  private:
312 
313  Aws::String m_launchTemplateId;
314  bool m_launchTemplateIdHasBeenSet;
315 
316  Aws::String m_launchTemplateName;
317  bool m_launchTemplateNameHasBeenSet;
318 
319  long long m_versionNumber;
320  bool m_versionNumberHasBeenSet;
321 
322  Aws::String m_versionDescription;
323  bool m_versionDescriptionHasBeenSet;
324 
325  Aws::Utils::DateTime m_createTime;
326  bool m_createTimeHasBeenSet;
327 
328  Aws::String m_createdBy;
329  bool m_createdByHasBeenSet;
330 
331  bool m_defaultVersion;
332  bool m_defaultVersionHasBeenSet;
333 
334  ResponseLaunchTemplateData m_launchTemplateData;
335  bool m_launchTemplateDataHasBeenSet;
336  };
337 
338 } // namespace Model
339 } // namespace EC2
340 } // namespace Aws
Aws::EC2::Model::LaunchTemplateVersion::SetVersionNumber
void SetVersionNumber(long long value)
Definition: LaunchTemplateVersion.h:139
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::LaunchTemplateVersion::SetCreatedBy
void SetCreatedBy(Aws::String &&value)
Definition: LaunchTemplateVersion.h:237
Aws::EC2::Model::LaunchTemplateVersion::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LaunchTemplateVersion::SetLaunchTemplateData
void SetLaunchTemplateData(const ResponseLaunchTemplateData &value)
Definition: LaunchTemplateVersion.h:294
Aws::EC2::Model::LaunchTemplateVersion::GetCreateTime
const Aws::Utils::DateTime & GetCreateTime() const
Definition: LaunchTemplateVersion.h:191
Aws::EC2::Model::LaunchTemplateVersion::WithDefaultVersion
LaunchTemplateVersion & WithDefaultVersion(bool value)
Definition: LaunchTemplateVersion.h:278
Aws::EC2::Model::LaunchTemplateVersion::WithVersionNumber
LaunchTemplateVersion & WithVersionNumber(long long value)
Definition: LaunchTemplateVersion.h:144
Aws::EC2::Model::LaunchTemplateVersion::SetVersionDescription
void SetVersionDescription(const Aws::String &value)
Definition: LaunchTemplateVersion.h:160
Aws::EC2::Model::LaunchTemplateVersion::SetVersionDescription
void SetVersionDescription(Aws::String &&value)
Definition: LaunchTemplateVersion.h:165
Aws::EC2::Model::LaunchTemplateVersion::WithLaunchTemplateData
LaunchTemplateVersion & WithLaunchTemplateData(const ResponseLaunchTemplateData &value)
Definition: LaunchTemplateVersion.h:304
Aws::EC2::Model::LaunchTemplateVersion::GetLaunchTemplateName
const Aws::String & GetLaunchTemplateName() const
Definition: LaunchTemplateVersion.h:88
Aws::EC2::Model::LaunchTemplateVersion::GetLaunchTemplateData
const ResponseLaunchTemplateData & GetLaunchTemplateData() const
Definition: LaunchTemplateVersion.h:284
Aws::EC2::Model::LaunchTemplateVersion::SetLaunchTemplateId
void SetLaunchTemplateId(const Aws::String &value)
Definition: LaunchTemplateVersion.h:57
DateTime.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplateVersion::VersionDescriptionHasBeenSet
bool VersionDescriptionHasBeenSet() const
Definition: LaunchTemplateVersion.h:155
Aws::EC2::Model::LaunchTemplateVersion::GetDefaultVersion
bool GetDefaultVersion() const
Definition: LaunchTemplateVersion.h:263
Aws::EC2::Model::LaunchTemplateVersion::WithVersionDescription
LaunchTemplateVersion & WithVersionDescription(Aws::String &&value)
Definition: LaunchTemplateVersion.h:180
Aws::EC2::Model::LaunchTemplateVersion::WithVersionDescription
LaunchTemplateVersion & WithVersionDescription(const char *value)
Definition: LaunchTemplateVersion.h:185
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplateVersion::SetCreatedBy
void SetCreatedBy(const char *value)
Definition: LaunchTemplateVersion.h:242
Aws::EC2::Model::ResponseLaunchTemplateData
Definition: ResponseLaunchTemplateData.h:51
Aws::EC2::Model::LaunchTemplateVersion::SetCreatedBy
void SetCreatedBy(const Aws::String &value)
Definition: LaunchTemplateVersion.h:232
Aws::EC2::Model::LaunchTemplateVersion::GetLaunchTemplateId
const Aws::String & GetLaunchTemplateId() const
Definition: LaunchTemplateVersion.h:47
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateVersion::DefaultVersionHasBeenSet
bool DefaultVersionHasBeenSet() const
Definition: LaunchTemplateVersion.h:268
Aws::EC2::Model::LaunchTemplateVersion::SetLaunchTemplateId
void SetLaunchTemplateId(Aws::String &&value)
Definition: LaunchTemplateVersion.h:62
Aws::EC2::Model::LaunchTemplateVersion::SetLaunchTemplateId
void SetLaunchTemplateId(const char *value)
Definition: LaunchTemplateVersion.h:67
Aws::EC2::Model::LaunchTemplateVersion::LaunchTemplateNameHasBeenSet
bool LaunchTemplateNameHasBeenSet() const
Definition: LaunchTemplateVersion.h:93
Aws::EC2::Model::LaunchTemplateVersion::WithLaunchTemplateName
LaunchTemplateVersion & WithLaunchTemplateName(const Aws::String &value)
Definition: LaunchTemplateVersion.h:113
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateVersion::VersionNumberHasBeenSet
bool VersionNumberHasBeenSet() const
Definition: LaunchTemplateVersion.h:134
Aws::EC2::Model::LaunchTemplateVersion::GetCreatedBy
const Aws::String & GetCreatedBy() const
Definition: LaunchTemplateVersion.h:222
Aws::EC2::Model::LaunchTemplateVersion::WithLaunchTemplateId
LaunchTemplateVersion & WithLaunchTemplateId(const Aws::String &value)
Definition: LaunchTemplateVersion.h:72
Aws::EC2::Model::LaunchTemplateVersion::SetVersionDescription
void SetVersionDescription(const char *value)
Definition: LaunchTemplateVersion.h:170
Aws::EC2::Model::LaunchTemplateVersion::WithLaunchTemplateId
LaunchTemplateVersion & WithLaunchTemplateId(Aws::String &&value)
Definition: LaunchTemplateVersion.h:77
Aws::EC2::Model::LaunchTemplateVersion::WithLaunchTemplateId
LaunchTemplateVersion & WithLaunchTemplateId(const char *value)
Definition: LaunchTemplateVersion.h:82
Aws::EC2::Model::LaunchTemplateVersion::LaunchTemplateVersion
LaunchTemplateVersion()
AWSString.h
Aws::EC2::Model::LaunchTemplateVersion::SetDefaultVersion
void SetDefaultVersion(bool value)
Definition: LaunchTemplateVersion.h:273
Aws::EC2::Model::LaunchTemplateVersion::WithCreatedBy
LaunchTemplateVersion & WithCreatedBy(const Aws::String &value)
Definition: LaunchTemplateVersion.h:247
Aws::EC2::Model::LaunchTemplateVersion::CreatedByHasBeenSet
bool CreatedByHasBeenSet() const
Definition: LaunchTemplateVersion.h:227
Aws::EC2::Model::LaunchTemplateVersion::WithLaunchTemplateData
LaunchTemplateVersion & WithLaunchTemplateData(ResponseLaunchTemplateData &&value)
Definition: LaunchTemplateVersion.h:309
Aws::EC2::Model::LaunchTemplateVersion::SetLaunchTemplateName
void SetLaunchTemplateName(const Aws::String &value)
Definition: LaunchTemplateVersion.h:98
Aws::EC2::Model::LaunchTemplateVersion::GetVersionDescription
const Aws::String & GetVersionDescription() const
Definition: LaunchTemplateVersion.h:150
Aws::EC2::Model::LaunchTemplateVersion
Definition: LaunchTemplateVersion.h:34
Aws::EC2::Model::LaunchTemplateVersion::operator=
LaunchTemplateVersion & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateVersion::WithVersionDescription
LaunchTemplateVersion & WithVersionDescription(const Aws::String &value)
Definition: LaunchTemplateVersion.h:175
Aws::EC2::Model::LaunchTemplateVersion::WithCreatedBy
LaunchTemplateVersion & WithCreatedBy(const char *value)
Definition: LaunchTemplateVersion.h:257
Aws::EC2::Model::LaunchTemplateVersion::WithCreateTime
LaunchTemplateVersion & WithCreateTime(const Aws::Utils::DateTime &value)
Definition: LaunchTemplateVersion.h:211
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplateVersion::CreateTimeHasBeenSet
bool CreateTimeHasBeenSet() const
Definition: LaunchTemplateVersion.h:196
Aws::EC2::Model::LaunchTemplateVersion::LaunchTemplateIdHasBeenSet
bool LaunchTemplateIdHasBeenSet() const
Definition: LaunchTemplateVersion.h:52
Aws::EC2::Model::LaunchTemplateVersion::LaunchTemplateDataHasBeenSet
bool LaunchTemplateDataHasBeenSet() const
Definition: LaunchTemplateVersion.h:289
Aws::EC2::Model::LaunchTemplateVersion::WithCreatedBy
LaunchTemplateVersion & WithCreatedBy(Aws::String &&value)
Definition: LaunchTemplateVersion.h:252
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LaunchTemplateVersion::GetVersionNumber
long long GetVersionNumber() const
Definition: LaunchTemplateVersion.h:129
Aws::EC2::Model::LaunchTemplateVersion::SetLaunchTemplateName
void SetLaunchTemplateName(const char *value)
Definition: LaunchTemplateVersion.h:108
Aws::EC2::Model::LaunchTemplateVersion::SetLaunchTemplateData
void SetLaunchTemplateData(ResponseLaunchTemplateData &&value)
Definition: LaunchTemplateVersion.h:299
Aws::EC2::Model::LaunchTemplateVersion::WithLaunchTemplateName
LaunchTemplateVersion & WithLaunchTemplateName(const char *value)
Definition: LaunchTemplateVersion.h:123
Aws::EC2::Model::LaunchTemplateVersion::WithCreateTime
LaunchTemplateVersion & WithCreateTime(Aws::Utils::DateTime &&value)
Definition: LaunchTemplateVersion.h:216
Aws::EC2::Model::LaunchTemplateVersion::LaunchTemplateVersion
LaunchTemplateVersion(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateVersion::SetLaunchTemplateName
void SetLaunchTemplateName(Aws::String &&value)
Definition: LaunchTemplateVersion.h:103
Aws::EC2::Model::LaunchTemplateVersion::SetCreateTime
void SetCreateTime(Aws::Utils::DateTime &&value)
Definition: LaunchTemplateVersion.h:206
Aws::EC2::Model::LaunchTemplateVersion::WithLaunchTemplateName
LaunchTemplateVersion & WithLaunchTemplateName(Aws::String &&value)
Definition: LaunchTemplateVersion.h:118
Aws::EC2::Model::LaunchTemplateVersion::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplateVersion::SetCreateTime
void SetCreateTime(const Aws::Utils::DateTime &value)
Definition: LaunchTemplateVersion.h:201
ResponseLaunchTemplateData.h