AWS SDK for C++  1.9.104
AWS SDK for C++
LaunchTemplateSpecification.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; }
47 
51  inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
52 
56  inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
57 
61  inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
62 
66  inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
67 
71  inline LaunchTemplateSpecification& WithLaunchTemplateId(const Aws::String& value) { SetLaunchTemplateId(value); return *this;}
72 
76  inline LaunchTemplateSpecification& WithLaunchTemplateId(Aws::String&& value) { SetLaunchTemplateId(std::move(value)); return *this;}
77 
81  inline LaunchTemplateSpecification& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
82 
83 
87  inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
88 
92  inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
93 
97  inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
98 
102  inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
103 
107  inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
108 
112  inline LaunchTemplateSpecification& WithLaunchTemplateName(const Aws::String& value) { SetLaunchTemplateName(value); return *this;}
113 
117  inline LaunchTemplateSpecification& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;}
118 
122  inline LaunchTemplateSpecification& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
123 
124 
129  inline const Aws::String& GetVersion() const{ return m_version; }
130 
135  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
136 
141  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
142 
147  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
148 
153  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
154 
159  inline LaunchTemplateSpecification& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
160 
165  inline LaunchTemplateSpecification& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
166 
171  inline LaunchTemplateSpecification& WithVersion(const char* value) { SetVersion(value); return *this;}
172 
173  private:
174 
175  Aws::String m_launchTemplateId;
176  bool m_launchTemplateIdHasBeenSet;
177 
178  Aws::String m_launchTemplateName;
179  bool m_launchTemplateNameHasBeenSet;
180 
181  Aws::String m_version;
182  bool m_versionHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace EC2
187 } // namespace Aws
Aws::EC2::Model::LaunchTemplateSpecification::WithLaunchTemplateId
LaunchTemplateSpecification & WithLaunchTemplateId(const char *value)
Definition: LaunchTemplateSpecification.h:81
Aws::EC2::Model::LaunchTemplateSpecification::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: LaunchTemplateSpecification.h:135
Aws::EC2::Model::LaunchTemplateSpecification::SetLaunchTemplateId
void SetLaunchTemplateId(const Aws::String &value)
Definition: LaunchTemplateSpecification.h:56
Aws::EC2::Model::LaunchTemplateSpecification::GetLaunchTemplateName
const Aws::String & GetLaunchTemplateName() const
Definition: LaunchTemplateSpecification.h:87
Aws::EC2::Model::LaunchTemplateSpecification::WithVersion
LaunchTemplateSpecification & WithVersion(const char *value)
Definition: LaunchTemplateSpecification.h:171
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplateSpecification::SetVersion
void SetVersion(Aws::String &&value)
Definition: LaunchTemplateSpecification.h:147
Aws::EC2::Model::LaunchTemplateSpecification::SetLaunchTemplateName
void SetLaunchTemplateName(const char *value)
Definition: LaunchTemplateSpecification.h:107
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplateSpecification::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LaunchTemplateSpecification::LaunchTemplateIdHasBeenSet
bool LaunchTemplateIdHasBeenSet() const
Definition: LaunchTemplateSpecification.h:51
Aws::EC2::Model::LaunchTemplateSpecification::SetLaunchTemplateId
void SetLaunchTemplateId(Aws::String &&value)
Definition: LaunchTemplateSpecification.h:61
Aws::EC2::Model::LaunchTemplateSpecification
Definition: LaunchTemplateSpecification.h:33
Aws::EC2::Model::LaunchTemplateSpecification::SetLaunchTemplateName
void SetLaunchTemplateName(Aws::String &&value)
Definition: LaunchTemplateSpecification.h:102
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateSpecification::WithLaunchTemplateId
LaunchTemplateSpecification & WithLaunchTemplateId(Aws::String &&value)
Definition: LaunchTemplateSpecification.h:76
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateSpecification::SetLaunchTemplateId
void SetLaunchTemplateId(const char *value)
Definition: LaunchTemplateSpecification.h:66
AWSString.h
Aws::EC2::Model::LaunchTemplateSpecification::WithLaunchTemplateName
LaunchTemplateSpecification & WithLaunchTemplateName(const char *value)
Definition: LaunchTemplateSpecification.h:122
Aws::EC2::Model::LaunchTemplateSpecification::GetVersion
const Aws::String & GetVersion() const
Definition: LaunchTemplateSpecification.h:129
Aws::EC2::Model::LaunchTemplateSpecification::LaunchTemplateSpecification
LaunchTemplateSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateSpecification::LaunchTemplateNameHasBeenSet
bool LaunchTemplateNameHasBeenSet() const
Definition: LaunchTemplateSpecification.h:92
Aws::EC2::Model::LaunchTemplateSpecification::WithVersion
LaunchTemplateSpecification & WithVersion(const Aws::String &value)
Definition: LaunchTemplateSpecification.h:159
Aws::EC2::Model::LaunchTemplateSpecification::WithLaunchTemplateName
LaunchTemplateSpecification & WithLaunchTemplateName(Aws::String &&value)
Definition: LaunchTemplateSpecification.h:117
Aws::EC2::Model::LaunchTemplateSpecification::LaunchTemplateSpecification
LaunchTemplateSpecification()
Aws::EC2::Model::LaunchTemplateSpecification::WithLaunchTemplateId
LaunchTemplateSpecification & WithLaunchTemplateId(const Aws::String &value)
Definition: LaunchTemplateSpecification.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplateSpecification::SetLaunchTemplateName
void SetLaunchTemplateName(const Aws::String &value)
Definition: LaunchTemplateSpecification.h:97
Aws::EC2::Model::LaunchTemplateSpecification::WithLaunchTemplateName
LaunchTemplateSpecification & WithLaunchTemplateName(const Aws::String &value)
Definition: LaunchTemplateSpecification.h:112
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::LaunchTemplateSpecification::SetVersion
void SetVersion(const char *value)
Definition: LaunchTemplateSpecification.h:153
Aws::EC2::Model::LaunchTemplateSpecification::SetVersion
void SetVersion(const Aws::String &value)
Definition: LaunchTemplateSpecification.h:141
Aws::EC2::Model::LaunchTemplateSpecification::WithVersion
LaunchTemplateSpecification & WithVersion(Aws::String &&value)
Definition: LaunchTemplateSpecification.h:165
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateSpecification::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplateSpecification::GetLaunchTemplateId
const Aws::String & GetLaunchTemplateId() const
Definition: LaunchTemplateSpecification.h:46
Aws::EC2::Model::LaunchTemplateSpecification::operator=
LaunchTemplateSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)