AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLaunchTemplateVersionRequest.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 <aws/ec2/model/RequestLaunchTemplateData.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace 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_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
47 inline bool GetDryRun() const{ return m_dryRun; }
48 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
49 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
50 inline CreateLaunchTemplateVersionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
52
54
60 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
61 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
62 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
63 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
64 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
66 inline CreateLaunchTemplateVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
67 inline CreateLaunchTemplateVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
69
71
75 inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; }
76 inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
77 inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
78 inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
79 inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
82 inline CreateLaunchTemplateVersionRequest& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
84
86
90 inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
91 inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
92 inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
93 inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
94 inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
97 inline CreateLaunchTemplateVersionRequest& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
99
101
111 inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; }
112 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
113 inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; }
114 inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); }
115 inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); }
117 inline CreateLaunchTemplateVersionRequest& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;}
118 inline CreateLaunchTemplateVersionRequest& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;}
120
122
125 inline const Aws::String& GetVersionDescription() const{ return m_versionDescription; }
126 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
127 inline void SetVersionDescription(const Aws::String& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = value; }
128 inline void SetVersionDescription(Aws::String&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::move(value); }
129 inline void SetVersionDescription(const char* value) { m_versionDescriptionHasBeenSet = true; m_versionDescription.assign(value); }
132 inline CreateLaunchTemplateVersionRequest& WithVersionDescription(const char* value) { SetVersionDescription(value); return *this;}
134
136
139 inline const RequestLaunchTemplateData& GetLaunchTemplateData() const{ return m_launchTemplateData; }
140 inline bool LaunchTemplateDataHasBeenSet() const { return m_launchTemplateDataHasBeenSet; }
141 inline void SetLaunchTemplateData(const RequestLaunchTemplateData& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = value; }
142 inline void SetLaunchTemplateData(RequestLaunchTemplateData&& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = std::move(value); }
146
148
156 inline bool GetResolveAlias() const{ return m_resolveAlias; }
157 inline bool ResolveAliasHasBeenSet() const { return m_resolveAliasHasBeenSet; }
158 inline void SetResolveAlias(bool value) { m_resolveAliasHasBeenSet = true; m_resolveAlias = value; }
159 inline CreateLaunchTemplateVersionRequest& WithResolveAlias(bool value) { SetResolveAlias(value); return *this;}
161 private:
162
163 bool m_dryRun;
164 bool m_dryRunHasBeenSet = false;
165
166 Aws::String m_clientToken;
167 bool m_clientTokenHasBeenSet = false;
168
169 Aws::String m_launchTemplateId;
170 bool m_launchTemplateIdHasBeenSet = false;
171
172 Aws::String m_launchTemplateName;
173 bool m_launchTemplateNameHasBeenSet = false;
174
175 Aws::String m_sourceVersion;
176 bool m_sourceVersionHasBeenSet = false;
177
178 Aws::String m_versionDescription;
179 bool m_versionDescriptionHasBeenSet = false;
180
181 RequestLaunchTemplateData m_launchTemplateData;
182 bool m_launchTemplateDataHasBeenSet = false;
183
184 bool m_resolveAlias;
185 bool m_resolveAliasHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace EC2
190} // namespace Aws
CreateLaunchTemplateVersionRequest & WithSourceVersion(const Aws::String &value)
CreateLaunchTemplateVersionRequest & WithResolveAlias(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateLaunchTemplateVersionRequest & WithVersionDescription(const char *value)
void SetLaunchTemplateData(const RequestLaunchTemplateData &value)
CreateLaunchTemplateVersionRequest & WithClientToken(const Aws::String &value)
CreateLaunchTemplateVersionRequest & WithClientToken(const char *value)
CreateLaunchTemplateVersionRequest & WithSourceVersion(const char *value)
CreateLaunchTemplateVersionRequest & WithLaunchTemplateId(Aws::String &&value)
CreateLaunchTemplateVersionRequest & WithVersionDescription(Aws::String &&value)
CreateLaunchTemplateVersionRequest & WithLaunchTemplateData(const RequestLaunchTemplateData &value)
CreateLaunchTemplateVersionRequest & WithLaunchTemplateName(Aws::String &&value)
CreateLaunchTemplateVersionRequest & WithLaunchTemplateId(const char *value)
CreateLaunchTemplateVersionRequest & WithVersionDescription(const Aws::String &value)
CreateLaunchTemplateVersionRequest & WithLaunchTemplateName(const Aws::String &value)
CreateLaunchTemplateVersionRequest & WithLaunchTemplateId(const Aws::String &value)
CreateLaunchTemplateVersionRequest & WithLaunchTemplateName(const char *value)
CreateLaunchTemplateVersionRequest & WithDryRun(bool value)
CreateLaunchTemplateVersionRequest & WithClientToken(Aws::String &&value)
CreateLaunchTemplateVersionRequest & WithLaunchTemplateData(RequestLaunchTemplateData &&value)
CreateLaunchTemplateVersionRequest & WithSourceVersion(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String