AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyLaunchTemplateRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace EC2
15{
16namespace 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_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
46 inline bool GetDryRun() const{ return m_dryRun; }
47 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
48 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
49 inline ModifyLaunchTemplateRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
51
53
59 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
60 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
61 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
62 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
63 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
64 inline ModifyLaunchTemplateRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
65 inline ModifyLaunchTemplateRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
66 inline ModifyLaunchTemplateRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
68
70
74 inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; }
75 inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
76 inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
77 inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
78 inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
80 inline ModifyLaunchTemplateRequest& WithLaunchTemplateId(Aws::String&& value) { SetLaunchTemplateId(std::move(value)); return *this;}
81 inline ModifyLaunchTemplateRequest& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
83
85
89 inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
90 inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
91 inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
92 inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
93 inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
95 inline ModifyLaunchTemplateRequest& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;}
96 inline ModifyLaunchTemplateRequest& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
98
100
103 inline const Aws::String& GetDefaultVersion() const{ return m_defaultVersion; }
104 inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
105 inline void SetDefaultVersion(const Aws::String& value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = value; }
106 inline void SetDefaultVersion(Aws::String&& value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = std::move(value); }
107 inline void SetDefaultVersion(const char* value) { m_defaultVersionHasBeenSet = true; m_defaultVersion.assign(value); }
109 inline ModifyLaunchTemplateRequest& WithDefaultVersion(Aws::String&& value) { SetDefaultVersion(std::move(value)); return *this;}
110 inline ModifyLaunchTemplateRequest& WithDefaultVersion(const char* value) { SetDefaultVersion(value); return *this;}
112 private:
113
114 bool m_dryRun;
115 bool m_dryRunHasBeenSet = false;
116
117 Aws::String m_clientToken;
118 bool m_clientTokenHasBeenSet = false;
119
120 Aws::String m_launchTemplateId;
121 bool m_launchTemplateIdHasBeenSet = false;
122
123 Aws::String m_launchTemplateName;
124 bool m_launchTemplateNameHasBeenSet = false;
125
126 Aws::String m_defaultVersion;
127 bool m_defaultVersionHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace EC2
132} // namespace Aws
ModifyLaunchTemplateRequest & WithDefaultVersion(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyLaunchTemplateRequest & WithClientToken(const Aws::String &value)
ModifyLaunchTemplateRequest & WithLaunchTemplateId(Aws::String &&value)
ModifyLaunchTemplateRequest & WithLaunchTemplateId(const char *value)
ModifyLaunchTemplateRequest & WithDryRun(bool value)
ModifyLaunchTemplateRequest & WithClientToken(const char *value)
ModifyLaunchTemplateRequest & WithDefaultVersion(Aws::String &&value)
ModifyLaunchTemplateRequest & WithDefaultVersion(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ModifyLaunchTemplateRequest & WithLaunchTemplateId(const Aws::String &value)
ModifyLaunchTemplateRequest & WithLaunchTemplateName(const char *value)
ModifyLaunchTemplateRequest & WithLaunchTemplateName(Aws::String &&value)
ModifyLaunchTemplateRequest & WithClientToken(Aws::String &&value)
ModifyLaunchTemplateRequest & WithLaunchTemplateName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String