AWS SDK for C++  1.9.70
AWS SDK for C++
LaunchTemplate.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <aws/ec2/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; }
49 
53  inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
54 
58  inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
59 
63  inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
64 
68  inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
69 
73  inline LaunchTemplate& WithLaunchTemplateId(const Aws::String& value) { SetLaunchTemplateId(value); return *this;}
74 
78  inline LaunchTemplate& WithLaunchTemplateId(Aws::String&& value) { SetLaunchTemplateId(std::move(value)); return *this;}
79 
83  inline LaunchTemplate& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
84 
85 
89  inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
90 
94  inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
95 
99  inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
100 
104  inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
105 
109  inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
110 
114  inline LaunchTemplate& WithLaunchTemplateName(const Aws::String& value) { SetLaunchTemplateName(value); return *this;}
115 
119  inline LaunchTemplate& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;}
120 
124  inline LaunchTemplate& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
125 
126 
130  inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
131 
135  inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
136 
140  inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
141 
145  inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
146 
150  inline LaunchTemplate& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
151 
155  inline LaunchTemplate& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
156 
157 
161  inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
162 
166  inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
167 
171  inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
172 
176  inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
177 
181  inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
182 
186  inline LaunchTemplate& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
187 
191  inline LaunchTemplate& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
192 
196  inline LaunchTemplate& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
197 
198 
202  inline long long GetDefaultVersionNumber() const{ return m_defaultVersionNumber; }
203 
207  inline bool DefaultVersionNumberHasBeenSet() const { return m_defaultVersionNumberHasBeenSet; }
208 
212  inline void SetDefaultVersionNumber(long long value) { m_defaultVersionNumberHasBeenSet = true; m_defaultVersionNumber = value; }
213 
217  inline LaunchTemplate& WithDefaultVersionNumber(long long value) { SetDefaultVersionNumber(value); return *this;}
218 
219 
223  inline long long GetLatestVersionNumber() const{ return m_latestVersionNumber; }
224 
228  inline bool LatestVersionNumberHasBeenSet() const { return m_latestVersionNumberHasBeenSet; }
229 
233  inline void SetLatestVersionNumber(long long value) { m_latestVersionNumberHasBeenSet = true; m_latestVersionNumber = value; }
234 
238  inline LaunchTemplate& WithLatestVersionNumber(long long value) { SetLatestVersionNumber(value); return *this;}
239 
240 
244  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
245 
249  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
250 
254  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
255 
259  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
260 
264  inline LaunchTemplate& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
265 
269  inline LaunchTemplate& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
270 
274  inline LaunchTemplate& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
275 
279  inline LaunchTemplate& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
280 
281  private:
282 
283  Aws::String m_launchTemplateId;
284  bool m_launchTemplateIdHasBeenSet;
285 
286  Aws::String m_launchTemplateName;
287  bool m_launchTemplateNameHasBeenSet;
288 
289  Aws::Utils::DateTime m_createTime;
290  bool m_createTimeHasBeenSet;
291 
292  Aws::String m_createdBy;
293  bool m_createdByHasBeenSet;
294 
295  long long m_defaultVersionNumber;
296  bool m_defaultVersionNumberHasBeenSet;
297 
298  long long m_latestVersionNumber;
299  bool m_latestVersionNumberHasBeenSet;
300 
301  Aws::Vector<Tag> m_tags;
302  bool m_tagsHasBeenSet;
303  };
304 
305 } // namespace Model
306 } // namespace EC2
307 } // namespace Aws
Aws::EC2::Model::LaunchTemplate::GetCreatedBy
const Aws::String & GetCreatedBy() const
Definition: LaunchTemplate.h:161
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::LaunchTemplate::WithDefaultVersionNumber
LaunchTemplate & WithDefaultVersionNumber(long long value)
Definition: LaunchTemplate.h:217
Aws::EC2::Model::LaunchTemplate::WithTags
LaunchTemplate & WithTags(const Aws::Vector< Tag > &value)
Definition: LaunchTemplate.h:264
Aws::EC2::Model::LaunchTemplate
Definition: LaunchTemplate.h:35
Aws::EC2::Model::LaunchTemplate::SetLaunchTemplateId
void SetLaunchTemplateId(const Aws::String &value)
Definition: LaunchTemplate.h:58
Aws::EC2::Model::LaunchTemplate::WithLaunchTemplateName
LaunchTemplate & WithLaunchTemplateName(Aws::String &&value)
Definition: LaunchTemplate.h:119
Aws::EC2::Model::LaunchTemplate::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: LaunchTemplate.h:244
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::LaunchTemplate::GetLaunchTemplateName
const Aws::String & GetLaunchTemplateName() const
Definition: LaunchTemplate.h:89
Aws::EC2::Model::LaunchTemplate::WithLaunchTemplateName
LaunchTemplate & WithLaunchTemplateName(const Aws::String &value)
Definition: LaunchTemplate.h:114
Aws::EC2::Model::LaunchTemplate::DefaultVersionNumberHasBeenSet
bool DefaultVersionNumberHasBeenSet() const
Definition: LaunchTemplate.h:207
DateTime.h
Aws::EC2::Model::LaunchTemplate::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: LaunchTemplate.h:259
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::LaunchTemplate::WithLaunchTemplateId
LaunchTemplate & WithLaunchTemplateId(const Aws::String &value)
Definition: LaunchTemplate.h:73
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplate::WithLaunchTemplateId
LaunchTemplate & WithLaunchTemplateId(const char *value)
Definition: LaunchTemplate.h:83
Aws::EC2::Model::LaunchTemplate::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: LaunchTemplate.h:249
AWSVector.h
Tag.h
Aws::EC2::Model::LaunchTemplate::GetLaunchTemplateId
const Aws::String & GetLaunchTemplateId() const
Definition: LaunchTemplate.h:48
Aws::EC2::Model::LaunchTemplate::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplate::WithLatestVersionNumber
LaunchTemplate & WithLatestVersionNumber(long long value)
Definition: LaunchTemplate.h:238
Aws::EC2::Model::LaunchTemplate::GetDefaultVersionNumber
long long GetDefaultVersionNumber() const
Definition: LaunchTemplate.h:202
Aws::EC2::Model::LaunchTemplate::WithTags
LaunchTemplate & WithTags(Aws::Vector< Tag > &&value)
Definition: LaunchTemplate.h:269
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplate::LaunchTemplateNameHasBeenSet
bool LaunchTemplateNameHasBeenSet() const
Definition: LaunchTemplate.h:94
Aws::EC2::Model::LaunchTemplate::SetLaunchTemplateId
void SetLaunchTemplateId(const char *value)
Definition: LaunchTemplate.h:68
Aws::EC2::Model::LaunchTemplate::SetLaunchTemplateName
void SetLaunchTemplateName(const Aws::String &value)
Definition: LaunchTemplate.h:99
Aws::EC2::Model::LaunchTemplate::WithCreateTime
LaunchTemplate & WithCreateTime(Aws::Utils::DateTime &&value)
Definition: LaunchTemplate.h:155
Aws::EC2::Model::LaunchTemplate::AddTags
LaunchTemplate & AddTags(const Tag &value)
Definition: LaunchTemplate.h:274
Aws::EC2::Model::LaunchTemplate::SetLaunchTemplateName
void SetLaunchTemplateName(const char *value)
Definition: LaunchTemplate.h:109
Aws::EC2::Model::LaunchTemplate::SetCreateTime
void SetCreateTime(const Aws::Utils::DateTime &value)
Definition: LaunchTemplate.h:140
Aws::EC2::Model::LaunchTemplate::SetCreateTime
void SetCreateTime(Aws::Utils::DateTime &&value)
Definition: LaunchTemplate.h:145
Aws::EC2::Model::LaunchTemplate::CreateTimeHasBeenSet
bool CreateTimeHasBeenSet() const
Definition: LaunchTemplate.h:135
Aws::EC2::Model::LaunchTemplate::WithCreatedBy
LaunchTemplate & WithCreatedBy(const Aws::String &value)
Definition: LaunchTemplate.h:186
Aws::EC2::Model::LaunchTemplate::WithCreateTime
LaunchTemplate & WithCreateTime(const Aws::Utils::DateTime &value)
Definition: LaunchTemplate.h:150
Aws::EC2::Model::LaunchTemplate::SetCreatedBy
void SetCreatedBy(Aws::String &&value)
Definition: LaunchTemplate.h:176
Aws::EC2::Model::LaunchTemplate::GetCreateTime
const Aws::Utils::DateTime & GetCreateTime() const
Definition: LaunchTemplate.h:130
Aws::EC2::Model::LaunchTemplate::operator=
LaunchTemplate & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::EC2::Model::LaunchTemplate::SetLaunchTemplateId
void SetLaunchTemplateId(Aws::String &&value)
Definition: LaunchTemplate.h:63
Aws::EC2::Model::LaunchTemplate::WithCreatedBy
LaunchTemplate & WithCreatedBy(Aws::String &&value)
Definition: LaunchTemplate.h:191
Aws::EC2::Model::LaunchTemplate::WithLaunchTemplateName
LaunchTemplate & WithLaunchTemplateName(const char *value)
Definition: LaunchTemplate.h:124
Aws::EC2::Model::LaunchTemplate::WithCreatedBy
LaunchTemplate & WithCreatedBy(const char *value)
Definition: LaunchTemplate.h:196
Aws::EC2::Model::LaunchTemplate::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LaunchTemplate::SetCreatedBy
void SetCreatedBy(const char *value)
Definition: LaunchTemplate.h:181
Aws::EC2::Model::LaunchTemplate::SetLatestVersionNumber
void SetLatestVersionNumber(long long value)
Definition: LaunchTemplate.h:233
Aws::EC2::Model::LaunchTemplate::AddTags
LaunchTemplate & AddTags(Tag &&value)
Definition: LaunchTemplate.h:279
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplate::LaunchTemplateIdHasBeenSet
bool LaunchTemplateIdHasBeenSet() const
Definition: LaunchTemplate.h:53
Aws::EC2::Model::LaunchTemplate::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: LaunchTemplate.h:254
Aws::EC2::Model::LaunchTemplate::LatestVersionNumberHasBeenSet
bool LatestVersionNumberHasBeenSet() const
Definition: LaunchTemplate.h:228
Aws::EC2::Model::LaunchTemplate::SetDefaultVersionNumber
void SetDefaultVersionNumber(long long value)
Definition: LaunchTemplate.h:212
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::LaunchTemplate::LaunchTemplate
LaunchTemplate()
Aws::EC2::Model::LaunchTemplate::GetLatestVersionNumber
long long GetLatestVersionNumber() const
Definition: LaunchTemplate.h:223
Aws::EC2::Model::LaunchTemplate::CreatedByHasBeenSet
bool CreatedByHasBeenSet() const
Definition: LaunchTemplate.h:166
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LaunchTemplate::SetCreatedBy
void SetCreatedBy(const Aws::String &value)
Definition: LaunchTemplate.h:171
Aws::EC2::Model::LaunchTemplate::LaunchTemplate
LaunchTemplate(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplate::SetLaunchTemplateName
void SetLaunchTemplateName(Aws::String &&value)
Definition: LaunchTemplate.h:104
Aws::EC2::Model::LaunchTemplate::WithLaunchTemplateId
LaunchTemplate & WithLaunchTemplateId(Aws::String &&value)
Definition: LaunchTemplate.h:78