AWS SDK for C++  1.9.66
AWS SDK for C++
CreateLaunchTemplateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateLaunchTemplate"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
48  inline bool GetDryRun() const{ return m_dryRun; }
49 
56  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
57 
64  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
65 
72  inline CreateLaunchTemplateRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
73 
74 
81  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
82 
89  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
90 
97  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
98 
105  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
106 
113  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
114 
121  inline CreateLaunchTemplateRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
122 
129  inline CreateLaunchTemplateRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
130 
137  inline CreateLaunchTemplateRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
138 
139 
143  inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
144 
148  inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
149 
153  inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
154 
158  inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
159 
163  inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
164 
168  inline CreateLaunchTemplateRequest& WithLaunchTemplateName(const Aws::String& value) { SetLaunchTemplateName(value); return *this;}
169 
173  inline CreateLaunchTemplateRequest& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;}
174 
178  inline CreateLaunchTemplateRequest& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
179 
180 
184  inline const Aws::String& GetVersionDescription() const{ return m_versionDescription; }
185 
189  inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
190 
194  inline void SetVersionDescription(const Aws::String& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = value; }
195 
199  inline void SetVersionDescription(Aws::String&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::move(value); }
200 
204  inline void SetVersionDescription(const char* value) { m_versionDescriptionHasBeenSet = true; m_versionDescription.assign(value); }
205 
209  inline CreateLaunchTemplateRequest& WithVersionDescription(const Aws::String& value) { SetVersionDescription(value); return *this;}
210 
214  inline CreateLaunchTemplateRequest& WithVersionDescription(Aws::String&& value) { SetVersionDescription(std::move(value)); return *this;}
215 
219  inline CreateLaunchTemplateRequest& WithVersionDescription(const char* value) { SetVersionDescription(value); return *this;}
220 
221 
225  inline const RequestLaunchTemplateData& GetLaunchTemplateData() const{ return m_launchTemplateData; }
226 
230  inline bool LaunchTemplateDataHasBeenSet() const { return m_launchTemplateDataHasBeenSet; }
231 
235  inline void SetLaunchTemplateData(const RequestLaunchTemplateData& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = value; }
236 
240  inline void SetLaunchTemplateData(RequestLaunchTemplateData&& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = std::move(value); }
241 
245  inline CreateLaunchTemplateRequest& WithLaunchTemplateData(const RequestLaunchTemplateData& value) { SetLaunchTemplateData(value); return *this;}
246 
250  inline CreateLaunchTemplateRequest& WithLaunchTemplateData(RequestLaunchTemplateData&& value) { SetLaunchTemplateData(std::move(value)); return *this;}
251 
252 
256  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
257 
261  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
262 
266  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
267 
271  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
272 
276  inline CreateLaunchTemplateRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
277 
281  inline CreateLaunchTemplateRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
282 
286  inline CreateLaunchTemplateRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
287 
291  inline CreateLaunchTemplateRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
292 
293  private:
294 
295  bool m_dryRun;
296  bool m_dryRunHasBeenSet;
297 
298  Aws::String m_clientToken;
299  bool m_clientTokenHasBeenSet;
300 
301  Aws::String m_launchTemplateName;
302  bool m_launchTemplateNameHasBeenSet;
303 
304  Aws::String m_versionDescription;
305  bool m_versionDescriptionHasBeenSet;
306 
307  RequestLaunchTemplateData m_launchTemplateData;
308  bool m_launchTemplateDataHasBeenSet;
309 
310  Aws::Vector<TagSpecification> m_tagSpecifications;
311  bool m_tagSpecificationsHasBeenSet;
312  };
313 
314 } // namespace Model
315 } // namespace EC2
316 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateLaunchTemplateRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateLaunchTemplateRequest.h:256
Aws::EC2::Model::CreateLaunchTemplateRequest::WithVersionDescription
CreateLaunchTemplateRequest & WithVersionDescription(Aws::String &&value)
Definition: CreateLaunchTemplateRequest.h:214
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateLaunchTemplateRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateLaunchTemplateRequest.h:97
Aws::EC2::Model::CreateLaunchTemplateRequest::GetDryRun
bool GetDryRun() const
Definition: CreateLaunchTemplateRequest.h:48
Aws::EC2::Model::RequestLaunchTemplateData
Definition: RequestLaunchTemplateData.h:52
Aws::EC2::Model::CreateLaunchTemplateRequest::SetLaunchTemplateName
void SetLaunchTemplateName(Aws::String &&value)
Definition: CreateLaunchTemplateRequest.h:158
Aws::EC2::Model::CreateLaunchTemplateRequest::WithTagSpecifications
CreateLaunchTemplateRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateLaunchTemplateRequest.h:276
Aws::EC2::Model::CreateLaunchTemplateRequest
Definition: CreateLaunchTemplateRequest.h:25
Aws::EC2::Model::CreateLaunchTemplateRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateLaunchTemplateRequest.h:56
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateLaunchTemplateRequest::WithVersionDescription
CreateLaunchTemplateRequest & WithVersionDescription(const Aws::String &value)
Definition: CreateLaunchTemplateRequest.h:209
Aws::EC2::Model::CreateLaunchTemplateRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateLaunchTemplateRequest.h:105
Aws::EC2::Model::CreateLaunchTemplateRequest::WithLaunchTemplateName
CreateLaunchTemplateRequest & WithLaunchTemplateName(const Aws::String &value)
Definition: CreateLaunchTemplateRequest.h:168
Aws::EC2::Model::CreateLaunchTemplateRequest::SetVersionDescription
void SetVersionDescription(const Aws::String &value)
Definition: CreateLaunchTemplateRequest.h:194
Aws::EC2::Model::CreateLaunchTemplateRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateLaunchTemplateRequest.h:113
Aws::EC2::Model::CreateLaunchTemplateRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateLaunchTemplateRequest.h:266
Aws::EC2::Model::CreateLaunchTemplateRequest::WithLaunchTemplateData
CreateLaunchTemplateRequest & WithLaunchTemplateData(const RequestLaunchTemplateData &value)
Definition: CreateLaunchTemplateRequest.h:245
Aws::EC2::Model::CreateLaunchTemplateRequest::SetLaunchTemplateData
void SetLaunchTemplateData(const RequestLaunchTemplateData &value)
Definition: CreateLaunchTemplateRequest.h:235
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateLaunchTemplateRequest::WithVersionDescription
CreateLaunchTemplateRequest & WithVersionDescription(const char *value)
Definition: CreateLaunchTemplateRequest.h:219
RequestLaunchTemplateData.h
AWSVector.h
Aws::EC2::Model::CreateLaunchTemplateRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateLaunchTemplateRequest.h:261
Aws::EC2::Model::CreateLaunchTemplateRequest::AddTagSpecifications
CreateLaunchTemplateRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateLaunchTemplateRequest.h:286
Aws::EC2::Model::CreateLaunchTemplateRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateLaunchTemplateRequest.h:64
Aws::EC2::Model::CreateLaunchTemplateRequest::WithLaunchTemplateName
CreateLaunchTemplateRequest & WithLaunchTemplateName(const char *value)
Definition: CreateLaunchTemplateRequest.h:178
Aws::EC2::Model::CreateLaunchTemplateRequest::WithClientToken
CreateLaunchTemplateRequest & WithClientToken(Aws::String &&value)
Definition: CreateLaunchTemplateRequest.h:129
Aws::EC2::Model::CreateLaunchTemplateRequest::AddTagSpecifications
CreateLaunchTemplateRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateLaunchTemplateRequest.h:291
Aws::EC2::Model::CreateLaunchTemplateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateLaunchTemplateRequest::CreateLaunchTemplateRequest
CreateLaunchTemplateRequest()
Aws::EC2::Model::CreateLaunchTemplateRequest::VersionDescriptionHasBeenSet
bool VersionDescriptionHasBeenSet() const
Definition: CreateLaunchTemplateRequest.h:189
Aws::EC2::Model::CreateLaunchTemplateRequest::SetLaunchTemplateName
void SetLaunchTemplateName(const char *value)
Definition: CreateLaunchTemplateRequest.h:163
EC2Request.h
Aws::EC2::Model::CreateLaunchTemplateRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateLaunchTemplateRequest.h:271
Aws::EC2::Model::CreateLaunchTemplateRequest::SetLaunchTemplateName
void SetLaunchTemplateName(const Aws::String &value)
Definition: CreateLaunchTemplateRequest.h:153
AWSString.h
Aws::EC2::Model::CreateLaunchTemplateRequest::WithLaunchTemplateName
CreateLaunchTemplateRequest & WithLaunchTemplateName(Aws::String &&value)
Definition: CreateLaunchTemplateRequest.h:173
Aws::EC2::Model::CreateLaunchTemplateRequest::GetLaunchTemplateData
const RequestLaunchTemplateData & GetLaunchTemplateData() const
Definition: CreateLaunchTemplateRequest.h:225
Aws::EC2::Model::CreateLaunchTemplateRequest::SetVersionDescription
void SetVersionDescription(Aws::String &&value)
Definition: CreateLaunchTemplateRequest.h:199
Aws::EC2::Model::CreateLaunchTemplateRequest::WithClientToken
CreateLaunchTemplateRequest & WithClientToken(const Aws::String &value)
Definition: CreateLaunchTemplateRequest.h:121
Aws::EC2::Model::CreateLaunchTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateLaunchTemplateRequest.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateLaunchTemplateRequest::LaunchTemplateNameHasBeenSet
bool LaunchTemplateNameHasBeenSet() const
Definition: CreateLaunchTemplateRequest.h:148
Aws::EC2::Model::CreateLaunchTemplateRequest::GetVersionDescription
const Aws::String & GetVersionDescription() const
Definition: CreateLaunchTemplateRequest.h:184
Aws::EC2::Model::CreateLaunchTemplateRequest::LaunchTemplateDataHasBeenSet
bool LaunchTemplateDataHasBeenSet() const
Definition: CreateLaunchTemplateRequest.h:230
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateLaunchTemplateRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateLaunchTemplateRequest::WithDryRun
CreateLaunchTemplateRequest & WithDryRun(bool value)
Definition: CreateLaunchTemplateRequest.h:72
Aws::EC2::Model::CreateLaunchTemplateRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateLaunchTemplateRequest.h:81
Aws::EC2::Model::CreateLaunchTemplateRequest::WithLaunchTemplateData
CreateLaunchTemplateRequest & WithLaunchTemplateData(RequestLaunchTemplateData &&value)
Definition: CreateLaunchTemplateRequest.h:250
Aws::EC2::Model::CreateLaunchTemplateRequest::SetLaunchTemplateData
void SetLaunchTemplateData(RequestLaunchTemplateData &&value)
Definition: CreateLaunchTemplateRequest.h:240
Aws::EC2::Model::CreateLaunchTemplateRequest::SetVersionDescription
void SetVersionDescription(const char *value)
Definition: CreateLaunchTemplateRequest.h:204
Aws::EC2::Model::CreateLaunchTemplateRequest::WithClientToken
CreateLaunchTemplateRequest & WithClientToken(const char *value)
Definition: CreateLaunchTemplateRequest.h:137
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::CreateLaunchTemplateRequest::GetLaunchTemplateName
const Aws::String & GetLaunchTemplateName() const
Definition: CreateLaunchTemplateRequest.h:143
EC2_EXPORTS.h
Aws::EC2::Model::CreateLaunchTemplateRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateLaunchTemplateRequest.h:89
Aws::EC2::Model::CreateLaunchTemplateRequest::WithTagSpecifications
CreateLaunchTemplateRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateLaunchTemplateRequest.h:281