AWS SDK for C++  1.9.73
AWS SDK for C++
ModifyLaunchTemplateRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ModifyLaunchTemplate"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
45  inline bool GetDryRun() const{ return m_dryRun; }
46 
53  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
54 
61  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
62 
69  inline ModifyLaunchTemplateRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
70 
71 
78  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
79 
86  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
87 
94  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
95 
102  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
103 
110  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
111 
118  inline ModifyLaunchTemplateRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
119 
126  inline ModifyLaunchTemplateRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
127 
134  inline ModifyLaunchTemplateRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
135 
136 
141  inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; }
142 
147  inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
148 
153  inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
154 
159  inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
160 
165  inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
166 
171  inline ModifyLaunchTemplateRequest& WithLaunchTemplateId(const Aws::String& value) { SetLaunchTemplateId(value); return *this;}
172 
177  inline ModifyLaunchTemplateRequest& WithLaunchTemplateId(Aws::String&& value) { SetLaunchTemplateId(std::move(value)); return *this;}
178 
183  inline ModifyLaunchTemplateRequest& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
184 
185 
190  inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
191 
196  inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
197 
202  inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
203 
208  inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
209 
214  inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
215 
220  inline ModifyLaunchTemplateRequest& WithLaunchTemplateName(const Aws::String& value) { SetLaunchTemplateName(value); return *this;}
221 
226  inline ModifyLaunchTemplateRequest& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;}
227 
232  inline ModifyLaunchTemplateRequest& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
233 
234 
238  inline const Aws::String& GetDefaultVersion() const{ return m_defaultVersion; }
239 
243  inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
244 
248  inline void SetDefaultVersion(const Aws::String& value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = value; }
249 
253  inline void SetDefaultVersion(Aws::String&& value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = std::move(value); }
254 
258  inline void SetDefaultVersion(const char* value) { m_defaultVersionHasBeenSet = true; m_defaultVersion.assign(value); }
259 
263  inline ModifyLaunchTemplateRequest& WithDefaultVersion(const Aws::String& value) { SetDefaultVersion(value); return *this;}
264 
268  inline ModifyLaunchTemplateRequest& WithDefaultVersion(Aws::String&& value) { SetDefaultVersion(std::move(value)); return *this;}
269 
273  inline ModifyLaunchTemplateRequest& WithDefaultVersion(const char* value) { SetDefaultVersion(value); return *this;}
274 
275  private:
276 
277  bool m_dryRun;
278  bool m_dryRunHasBeenSet;
279 
280  Aws::String m_clientToken;
281  bool m_clientTokenHasBeenSet;
282 
283  Aws::String m_launchTemplateId;
284  bool m_launchTemplateIdHasBeenSet;
285 
286  Aws::String m_launchTemplateName;
287  bool m_launchTemplateNameHasBeenSet;
288 
289  Aws::String m_defaultVersion;
290  bool m_defaultVersionHasBeenSet;
291  };
292 
293 } // namespace Model
294 } // namespace EC2
295 } // namespace Aws
Aws::EC2::Model::ModifyLaunchTemplateRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: ModifyLaunchTemplateRequest.h:102
Aws::EC2::Model::ModifyLaunchTemplateRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyLaunchTemplateRequest.h:61
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyLaunchTemplateRequest::WithDefaultVersion
ModifyLaunchTemplateRequest & WithDefaultVersion(const Aws::String &value)
Definition: ModifyLaunchTemplateRequest.h:263
Aws::EC2::Model::ModifyLaunchTemplateRequest::GetDefaultVersion
const Aws::String & GetDefaultVersion() const
Definition: ModifyLaunchTemplateRequest.h:238
Aws::EC2::Model::ModifyLaunchTemplateRequest
Definition: ModifyLaunchTemplateRequest.h:22
Aws::EC2::Model::ModifyLaunchTemplateRequest::SetLaunchTemplateName
void SetLaunchTemplateName(const char *value)
Definition: ModifyLaunchTemplateRequest.h:214
Aws::EC2::Model::ModifyLaunchTemplateRequest::LaunchTemplateNameHasBeenSet
bool LaunchTemplateNameHasBeenSet() const
Definition: ModifyLaunchTemplateRequest.h:196
Aws::EC2::Model::ModifyLaunchTemplateRequest::WithClientToken
ModifyLaunchTemplateRequest & WithClientToken(Aws::String &&value)
Definition: ModifyLaunchTemplateRequest.h:126
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyLaunchTemplateRequest::WithClientToken
ModifyLaunchTemplateRequest & WithClientToken(const char *value)
Definition: ModifyLaunchTemplateRequest.h:134
Aws::EC2::Model::ModifyLaunchTemplateRequest::WithLaunchTemplateId
ModifyLaunchTemplateRequest & WithLaunchTemplateId(const Aws::String &value)
Definition: ModifyLaunchTemplateRequest.h:171
Aws::EC2::Model::ModifyLaunchTemplateRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: ModifyLaunchTemplateRequest.h:94
Aws::EC2::Model::ModifyLaunchTemplateRequest::SetDefaultVersion
void SetDefaultVersion(Aws::String &&value)
Definition: ModifyLaunchTemplateRequest.h:253
Aws::EC2::Model::ModifyLaunchTemplateRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: ModifyLaunchTemplateRequest.h:78
Aws::EC2::Model::ModifyLaunchTemplateRequest::GetLaunchTemplateName
const Aws::String & GetLaunchTemplateName() const
Definition: ModifyLaunchTemplateRequest.h:190
Aws::EC2::Model::ModifyLaunchTemplateRequest::GetLaunchTemplateId
const Aws::String & GetLaunchTemplateId() const
Definition: ModifyLaunchTemplateRequest.h:141
Aws::EC2::Model::ModifyLaunchTemplateRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyLaunchTemplateRequest.h:53
Aws::EC2::Model::ModifyLaunchTemplateRequest::SetLaunchTemplateName
void SetLaunchTemplateName(const Aws::String &value)
Definition: ModifyLaunchTemplateRequest.h:202
Aws::EC2::Model::ModifyLaunchTemplateRequest::SetClientToken
void SetClientToken(const char *value)
Definition: ModifyLaunchTemplateRequest.h:110
Aws::EC2::Model::ModifyLaunchTemplateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyLaunchTemplateRequest::SetLaunchTemplateId
void SetLaunchTemplateId(const char *value)
Definition: ModifyLaunchTemplateRequest.h:165
Aws::EC2::Model::ModifyLaunchTemplateRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyLaunchTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyLaunchTemplateRequest.h:30
Aws::EC2::Model::ModifyLaunchTemplateRequest::WithClientToken
ModifyLaunchTemplateRequest & WithClientToken(const Aws::String &value)
Definition: ModifyLaunchTemplateRequest.h:118
Aws::EC2::Model::ModifyLaunchTemplateRequest::SetDefaultVersion
void SetDefaultVersion(const Aws::String &value)
Definition: ModifyLaunchTemplateRequest.h:248
Aws::EC2::Model::ModifyLaunchTemplateRequest::LaunchTemplateIdHasBeenSet
bool LaunchTemplateIdHasBeenSet() const
Definition: ModifyLaunchTemplateRequest.h:147
EC2Request.h
Aws::EC2::Model::ModifyLaunchTemplateRequest::SetLaunchTemplateId
void SetLaunchTemplateId(const Aws::String &value)
Definition: ModifyLaunchTemplateRequest.h:153
AWSString.h
Aws::EC2::Model::ModifyLaunchTemplateRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: ModifyLaunchTemplateRequest.h:86
Aws::EC2::Model::ModifyLaunchTemplateRequest::WithLaunchTemplateName
ModifyLaunchTemplateRequest & WithLaunchTemplateName(Aws::String &&value)
Definition: ModifyLaunchTemplateRequest.h:226
Aws::EC2::Model::ModifyLaunchTemplateRequest::DefaultVersionHasBeenSet
bool DefaultVersionHasBeenSet() const
Definition: ModifyLaunchTemplateRequest.h:243
Aws::EC2::Model::ModifyLaunchTemplateRequest::WithDefaultVersion
ModifyLaunchTemplateRequest & WithDefaultVersion(const char *value)
Definition: ModifyLaunchTemplateRequest.h:273
Aws::EC2::Model::ModifyLaunchTemplateRequest::SetLaunchTemplateId
void SetLaunchTemplateId(Aws::String &&value)
Definition: ModifyLaunchTemplateRequest.h:159
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyLaunchTemplateRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyLaunchTemplateRequest.h:45
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ModifyLaunchTemplateRequest::WithDefaultVersion
ModifyLaunchTemplateRequest & WithDefaultVersion(Aws::String &&value)
Definition: ModifyLaunchTemplateRequest.h:268
Aws::EC2::Model::ModifyLaunchTemplateRequest::WithDryRun
ModifyLaunchTemplateRequest & WithDryRun(bool value)
Definition: ModifyLaunchTemplateRequest.h:69
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifyLaunchTemplateRequest::WithLaunchTemplateName
ModifyLaunchTemplateRequest & WithLaunchTemplateName(const Aws::String &value)
Definition: ModifyLaunchTemplateRequest.h:220
Aws::EC2::Model::ModifyLaunchTemplateRequest::WithLaunchTemplateName
ModifyLaunchTemplateRequest & WithLaunchTemplateName(const char *value)
Definition: ModifyLaunchTemplateRequest.h:232
Aws::EC2::Model::ModifyLaunchTemplateRequest::SetDefaultVersion
void SetDefaultVersion(const char *value)
Definition: ModifyLaunchTemplateRequest.h:258
Aws::EC2::Model::ModifyLaunchTemplateRequest::WithLaunchTemplateId
ModifyLaunchTemplateRequest & WithLaunchTemplateId(Aws::String &&value)
Definition: ModifyLaunchTemplateRequest.h:177
Aws::EC2::Model::ModifyLaunchTemplateRequest::WithLaunchTemplateId
ModifyLaunchTemplateRequest & WithLaunchTemplateId(const char *value)
Definition: ModifyLaunchTemplateRequest.h:183
EC2_EXPORTS.h
Aws::EC2::Model::ModifyLaunchTemplateRequest::ModifyLaunchTemplateRequest
ModifyLaunchTemplateRequest()
Aws::EC2::Model::ModifyLaunchTemplateRequest::SetLaunchTemplateName
void SetLaunchTemplateName(Aws::String &&value)
Definition: ModifyLaunchTemplateRequest.h:208