AWS SDK for C++  1.9.131
AWS SDK for C++
CreateLaunchTemplateVersionRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateLaunchTemplateVersion"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
46  inline bool GetDryRun() const{ return m_dryRun; }
47 
54  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
55 
62  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
63 
70  inline CreateLaunchTemplateVersionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
71 
72 
79  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
80 
87  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
88 
95  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
96 
103  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
104 
111  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
112 
119  inline CreateLaunchTemplateVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
120 
127  inline CreateLaunchTemplateVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
128 
135  inline CreateLaunchTemplateVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
136 
137 
142  inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; }
143 
148  inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
149 
154  inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
155 
160  inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
161 
166  inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
167 
172  inline CreateLaunchTemplateVersionRequest& WithLaunchTemplateId(const Aws::String& value) { SetLaunchTemplateId(value); return *this;}
173 
178  inline CreateLaunchTemplateVersionRequest& WithLaunchTemplateId(Aws::String&& value) { SetLaunchTemplateId(std::move(value)); return *this;}
179 
184  inline CreateLaunchTemplateVersionRequest& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
185 
186 
191  inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
192 
197  inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
198 
203  inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
204 
209  inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
210 
215  inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
216 
221  inline CreateLaunchTemplateVersionRequest& WithLaunchTemplateName(const Aws::String& value) { SetLaunchTemplateName(value); return *this;}
222 
227  inline CreateLaunchTemplateVersionRequest& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;}
228 
233  inline CreateLaunchTemplateVersionRequest& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
234 
235 
243  inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; }
244 
252  inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
253 
261  inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; }
262 
270  inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); }
271 
279  inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); }
280 
288  inline CreateLaunchTemplateVersionRequest& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;}
289 
297  inline CreateLaunchTemplateVersionRequest& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;}
298 
306  inline CreateLaunchTemplateVersionRequest& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;}
307 
308 
312  inline const Aws::String& GetVersionDescription() const{ return m_versionDescription; }
313 
317  inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
318 
322  inline void SetVersionDescription(const Aws::String& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = value; }
323 
327  inline void SetVersionDescription(Aws::String&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::move(value); }
328 
332  inline void SetVersionDescription(const char* value) { m_versionDescriptionHasBeenSet = true; m_versionDescription.assign(value); }
333 
337  inline CreateLaunchTemplateVersionRequest& WithVersionDescription(const Aws::String& value) { SetVersionDescription(value); return *this;}
338 
342  inline CreateLaunchTemplateVersionRequest& WithVersionDescription(Aws::String&& value) { SetVersionDescription(std::move(value)); return *this;}
343 
347  inline CreateLaunchTemplateVersionRequest& WithVersionDescription(const char* value) { SetVersionDescription(value); return *this;}
348 
349 
353  inline const RequestLaunchTemplateData& GetLaunchTemplateData() const{ return m_launchTemplateData; }
354 
358  inline bool LaunchTemplateDataHasBeenSet() const { return m_launchTemplateDataHasBeenSet; }
359 
363  inline void SetLaunchTemplateData(const RequestLaunchTemplateData& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = value; }
364 
368  inline void SetLaunchTemplateData(RequestLaunchTemplateData&& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = std::move(value); }
369 
373  inline CreateLaunchTemplateVersionRequest& WithLaunchTemplateData(const RequestLaunchTemplateData& value) { SetLaunchTemplateData(value); return *this;}
374 
378  inline CreateLaunchTemplateVersionRequest& WithLaunchTemplateData(RequestLaunchTemplateData&& value) { SetLaunchTemplateData(std::move(value)); return *this;}
379 
380  private:
381 
382  bool m_dryRun;
383  bool m_dryRunHasBeenSet;
384 
385  Aws::String m_clientToken;
386  bool m_clientTokenHasBeenSet;
387 
388  Aws::String m_launchTemplateId;
389  bool m_launchTemplateIdHasBeenSet;
390 
391  Aws::String m_launchTemplateName;
392  bool m_launchTemplateNameHasBeenSet;
393 
394  Aws::String m_sourceVersion;
395  bool m_sourceVersionHasBeenSet;
396 
397  Aws::String m_versionDescription;
398  bool m_versionDescriptionHasBeenSet;
399 
400  RequestLaunchTemplateData m_launchTemplateData;
401  bool m_launchTemplateDataHasBeenSet;
402  };
403 
404 } // namespace Model
405 } // namespace EC2
406 } // namespace Aws
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SourceVersionHasBeenSet
bool SourceVersionHasBeenSet() const
Definition: CreateLaunchTemplateVersionRequest.h:252
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithLaunchTemplateName
CreateLaunchTemplateVersionRequest & WithLaunchTemplateName(const Aws::String &value)
Definition: CreateLaunchTemplateVersionRequest.h:221
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithClientToken
CreateLaunchTemplateVersionRequest & WithClientToken(const Aws::String &value)
Definition: CreateLaunchTemplateVersionRequest.h:119
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::CreateLaunchTemplateVersionRequest
CreateLaunchTemplateVersionRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateLaunchTemplateVersionRequest.h:95
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::LaunchTemplateIdHasBeenSet
bool LaunchTemplateIdHasBeenSet() const
Definition: CreateLaunchTemplateVersionRequest.h:148
Aws::EC2::Model::RequestLaunchTemplateData
Definition: RequestLaunchTemplateData.h:52
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::GetVersionDescription
const Aws::String & GetVersionDescription() const
Definition: CreateLaunchTemplateVersionRequest.h:312
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetLaunchTemplateName
void SetLaunchTemplateName(Aws::String &&value)
Definition: CreateLaunchTemplateVersionRequest.h:209
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithLaunchTemplateName
CreateLaunchTemplateVersionRequest & WithLaunchTemplateName(Aws::String &&value)
Definition: CreateLaunchTemplateVersionRequest.h:227
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetLaunchTemplateData
void SetLaunchTemplateData(const RequestLaunchTemplateData &value)
Definition: CreateLaunchTemplateVersionRequest.h:363
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetLaunchTemplateName
void SetLaunchTemplateName(const Aws::String &value)
Definition: CreateLaunchTemplateVersionRequest.h:203
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::GetLaunchTemplateName
const Aws::String & GetLaunchTemplateName() const
Definition: CreateLaunchTemplateVersionRequest.h:191
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithLaunchTemplateName
CreateLaunchTemplateVersionRequest & WithLaunchTemplateName(const char *value)
Definition: CreateLaunchTemplateVersionRequest.h:233
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithSourceVersion
CreateLaunchTemplateVersionRequest & WithSourceVersion(const char *value)
Definition: CreateLaunchTemplateVersionRequest.h:306
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetVersionDescription
void SetVersionDescription(const Aws::String &value)
Definition: CreateLaunchTemplateVersionRequest.h:322
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithSourceVersion
CreateLaunchTemplateVersionRequest & WithSourceVersion(Aws::String &&value)
Definition: CreateLaunchTemplateVersionRequest.h:297
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::LaunchTemplateDataHasBeenSet
bool LaunchTemplateDataHasBeenSet() const
Definition: CreateLaunchTemplateVersionRequest.h:358
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithVersionDescription
CreateLaunchTemplateVersionRequest & WithVersionDescription(const char *value)
Definition: CreateLaunchTemplateVersionRequest.h:347
RequestLaunchTemplateData.h
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithClientToken
CreateLaunchTemplateVersionRequest & WithClientToken(const char *value)
Definition: CreateLaunchTemplateVersionRequest.h:135
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetLaunchTemplateName
void SetLaunchTemplateName(const char *value)
Definition: CreateLaunchTemplateVersionRequest.h:215
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithLaunchTemplateData
CreateLaunchTemplateVersionRequest & WithLaunchTemplateData(const RequestLaunchTemplateData &value)
Definition: CreateLaunchTemplateVersionRequest.h:373
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetLaunchTemplateId
void SetLaunchTemplateId(Aws::String &&value)
Definition: CreateLaunchTemplateVersionRequest.h:160
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateLaunchTemplateVersionRequest.h:79
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetLaunchTemplateId
void SetLaunchTemplateId(const char *value)
Definition: CreateLaunchTemplateVersionRequest.h:166
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithLaunchTemplateId
CreateLaunchTemplateVersionRequest & WithLaunchTemplateId(Aws::String &&value)
Definition: CreateLaunchTemplateVersionRequest.h:178
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetVersionDescription
void SetVersionDescription(const char *value)
Definition: CreateLaunchTemplateVersionRequest.h:332
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::GetLaunchTemplateId
const Aws::String & GetLaunchTemplateId() const
Definition: CreateLaunchTemplateVersionRequest.h:142
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetVersionDescription
void SetVersionDescription(Aws::String &&value)
Definition: CreateLaunchTemplateVersionRequest.h:327
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::GetDryRun
bool GetDryRun() const
Definition: CreateLaunchTemplateVersionRequest.h:46
EC2Request.h
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithDryRun
CreateLaunchTemplateVersionRequest & WithDryRun(bool value)
Definition: CreateLaunchTemplateVersionRequest.h:70
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetSourceVersion
void SetSourceVersion(const char *value)
Definition: CreateLaunchTemplateVersionRequest.h:279
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateLaunchTemplateVersionRequest.h:54
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateLaunchTemplateVersionRequest.h:111
AWSString.h
Aws::EC2::Model::CreateLaunchTemplateVersionRequest
Definition: CreateLaunchTemplateVersionRequest.h:23
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::GetLaunchTemplateData
const RequestLaunchTemplateData & GetLaunchTemplateData() const
Definition: CreateLaunchTemplateVersionRequest.h:353
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetSourceVersion
void SetSourceVersion(Aws::String &&value)
Definition: CreateLaunchTemplateVersionRequest.h:270
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateLaunchTemplateVersionRequest.h:31
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateLaunchTemplateVersionRequest.h:103
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetLaunchTemplateId
void SetLaunchTemplateId(const Aws::String &value)
Definition: CreateLaunchTemplateVersionRequest.h:154
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::LaunchTemplateNameHasBeenSet
bool LaunchTemplateNameHasBeenSet() const
Definition: CreateLaunchTemplateVersionRequest.h:197
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithClientToken
CreateLaunchTemplateVersionRequest & WithClientToken(Aws::String &&value)
Definition: CreateLaunchTemplateVersionRequest.h:127
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithLaunchTemplateId
CreateLaunchTemplateVersionRequest & WithLaunchTemplateId(const Aws::String &value)
Definition: CreateLaunchTemplateVersionRequest.h:172
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateLaunchTemplateVersionRequest.h:62
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::SetLaunchTemplateData
void SetLaunchTemplateData(RequestLaunchTemplateData &&value)
Definition: CreateLaunchTemplateVersionRequest.h:368
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithLaunchTemplateId
CreateLaunchTemplateVersionRequest & WithLaunchTemplateId(const char *value)
Definition: CreateLaunchTemplateVersionRequest.h:184
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithLaunchTemplateData
CreateLaunchTemplateVersionRequest & WithLaunchTemplateData(RequestLaunchTemplateData &&value)
Definition: CreateLaunchTemplateVersionRequest.h:378
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::VersionDescriptionHasBeenSet
bool VersionDescriptionHasBeenSet() const
Definition: CreateLaunchTemplateVersionRequest.h:317
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::CreateLaunchTemplateVersionRequest::SetSourceVersion
void SetSourceVersion(const Aws::String &value)
Definition: CreateLaunchTemplateVersionRequest.h:261
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithVersionDescription
CreateLaunchTemplateVersionRequest & WithVersionDescription(Aws::String &&value)
Definition: CreateLaunchTemplateVersionRequest.h:342
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithSourceVersion
CreateLaunchTemplateVersionRequest & WithSourceVersion(const Aws::String &value)
Definition: CreateLaunchTemplateVersionRequest.h:288
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::GetSourceVersion
const Aws::String & GetSourceVersion() const
Definition: CreateLaunchTemplateVersionRequest.h:243
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateLaunchTemplateVersionRequest.h:87
EC2_EXPORTS.h
Aws::EC2::Model::CreateLaunchTemplateVersionRequest::WithVersionDescription
CreateLaunchTemplateVersionRequest & WithVersionDescription(const Aws::String &value)
Definition: CreateLaunchTemplateVersionRequest.h:337