AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchTemplate.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/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API LaunchTemplate();
38 AWS_EC2_API LaunchTemplate(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; }
50 inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
51 inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
52 inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
53 inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
54 inline LaunchTemplate& WithLaunchTemplateId(const Aws::String& value) { SetLaunchTemplateId(value); return *this;}
55 inline LaunchTemplate& WithLaunchTemplateId(Aws::String&& value) { SetLaunchTemplateId(std::move(value)); return *this;}
56 inline LaunchTemplate& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
58
60
63 inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
64 inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
65 inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
66 inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
67 inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
68 inline LaunchTemplate& WithLaunchTemplateName(const Aws::String& value) { SetLaunchTemplateName(value); return *this;}
69 inline LaunchTemplate& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;}
70 inline LaunchTemplate& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
72
74
77 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
78 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
79 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
80 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
81 inline LaunchTemplate& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
82 inline LaunchTemplate& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
90 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
91 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
92 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
93 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
94 inline LaunchTemplate& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
95 inline LaunchTemplate& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
96 inline LaunchTemplate& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
98
100
103 inline long long GetDefaultVersionNumber() const{ return m_defaultVersionNumber; }
104 inline bool DefaultVersionNumberHasBeenSet() const { return m_defaultVersionNumberHasBeenSet; }
105 inline void SetDefaultVersionNumber(long long value) { m_defaultVersionNumberHasBeenSet = true; m_defaultVersionNumber = value; }
106 inline LaunchTemplate& WithDefaultVersionNumber(long long value) { SetDefaultVersionNumber(value); return *this;}
108
110
113 inline long long GetLatestVersionNumber() const{ return m_latestVersionNumber; }
114 inline bool LatestVersionNumberHasBeenSet() const { return m_latestVersionNumberHasBeenSet; }
115 inline void SetLatestVersionNumber(long long value) { m_latestVersionNumberHasBeenSet = true; m_latestVersionNumber = value; }
116 inline LaunchTemplate& WithLatestVersionNumber(long long value) { SetLatestVersionNumber(value); return *this;}
118
120
123 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
124 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
126 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
127 inline LaunchTemplate& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
128 inline LaunchTemplate& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
129 inline LaunchTemplate& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
130 inline LaunchTemplate& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
132 private:
133
134 Aws::String m_launchTemplateId;
135 bool m_launchTemplateIdHasBeenSet = false;
136
137 Aws::String m_launchTemplateName;
138 bool m_launchTemplateNameHasBeenSet = false;
139
140 Aws::Utils::DateTime m_createTime;
141 bool m_createTimeHasBeenSet = false;
142
143 Aws::String m_createdBy;
144 bool m_createdByHasBeenSet = false;
145
146 long long m_defaultVersionNumber;
147 bool m_defaultVersionNumberHasBeenSet = false;
148
149 long long m_latestVersionNumber;
150 bool m_latestVersionNumberHasBeenSet = false;
151
152 Aws::Vector<Tag> m_tags;
153 bool m_tagsHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace EC2
158} // namespace Aws
LaunchTemplate & WithLaunchTemplateName(const char *value)
AWS_EC2_API LaunchTemplate & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplate & WithLaunchTemplateId(const Aws::String &value)
void SetLaunchTemplateId(const char *value)
void SetCreatedBy(const Aws::String &value)
void SetLatestVersionNumber(long long value)
long long GetDefaultVersionNumber() const
void SetLaunchTemplateId(Aws::String &&value)
const Aws::String & GetLaunchTemplateId() const
long long GetLatestVersionNumber() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LaunchTemplate & WithLatestVersionNumber(long long value)
void SetTags(const Aws::Vector< Tag > &value)
void SetCreateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreateTime() const
void SetLaunchTemplateName(const Aws::String &value)
LaunchTemplate & WithLaunchTemplateName(const Aws::String &value)
LaunchTemplate & AddTags(Tag &&value)
LaunchTemplate & WithCreatedBy(const Aws::String &value)
const Aws::String & GetCreatedBy() const
void SetDefaultVersionNumber(long long value)
LaunchTemplate & WithLaunchTemplateName(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
void SetLaunchTemplateName(Aws::String &&value)
LaunchTemplate & WithLaunchTemplateId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchTemplate & WithDefaultVersionNumber(long long value)
const Aws::String & GetLaunchTemplateName() const
LaunchTemplate & WithCreatedBy(const char *value)
LaunchTemplate & WithCreatedBy(Aws::String &&value)
AWS_EC2_API LaunchTemplate(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplate & AddTags(const Tag &value)
LaunchTemplate & WithCreateTime(const Aws::Utils::DateTime &value)
void SetCreatedBy(Aws::String &&value)
void SetLaunchTemplateId(const Aws::String &value)
void SetCreatedBy(const char *value)
void SetCreateTime(Aws::Utils::DateTime &&value)
LaunchTemplate & WithCreateTime(Aws::Utils::DateTime &&value)
void SetTags(Aws::Vector< Tag > &&value)
LaunchTemplate & WithTags(Aws::Vector< Tag > &&value)
LaunchTemplate & WithTags(const Aws::Vector< Tag > &value)
void SetLaunchTemplateName(const char *value)
LaunchTemplate & WithLaunchTemplateId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream