AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API CreateLaunchTemplateVersionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateLaunchTemplateVersion"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline bool GetDryRun() const { return m_dryRun; }
49 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
50 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 inline CreateLaunchTemplateVersionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
53
55
62 inline const Aws::String& GetClientToken() const { return m_clientToken; }
63 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
64 template<typename ClientTokenT = Aws::String>
65 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
66 template<typename ClientTokenT = Aws::String>
67 CreateLaunchTemplateVersionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
69
71
75 inline const Aws::String& GetLaunchTemplateId() const { return m_launchTemplateId; }
76 inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
77 template<typename LaunchTemplateIdT = Aws::String>
78 void SetLaunchTemplateId(LaunchTemplateIdT&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::forward<LaunchTemplateIdT>(value); }
79 template<typename LaunchTemplateIdT = Aws::String>
80 CreateLaunchTemplateVersionRequest& WithLaunchTemplateId(LaunchTemplateIdT&& value) { SetLaunchTemplateId(std::forward<LaunchTemplateIdT>(value)); return *this;}
82
84
88 inline const Aws::String& GetLaunchTemplateName() const { return m_launchTemplateName; }
89 inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
90 template<typename LaunchTemplateNameT = Aws::String>
91 void SetLaunchTemplateName(LaunchTemplateNameT&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::forward<LaunchTemplateNameT>(value); }
92 template<typename LaunchTemplateNameT = Aws::String>
93 CreateLaunchTemplateVersionRequest& WithLaunchTemplateName(LaunchTemplateNameT&& value) { SetLaunchTemplateName(std::forward<LaunchTemplateNameT>(value)); return *this;}
95
97
107 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
108 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
109 template<typename SourceVersionT = Aws::String>
110 void SetSourceVersion(SourceVersionT&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::forward<SourceVersionT>(value); }
111 template<typename SourceVersionT = Aws::String>
112 CreateLaunchTemplateVersionRequest& WithSourceVersion(SourceVersionT&& value) { SetSourceVersion(std::forward<SourceVersionT>(value)); return *this;}
114
116
119 inline const Aws::String& GetVersionDescription() const { return m_versionDescription; }
120 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
121 template<typename VersionDescriptionT = Aws::String>
122 void SetVersionDescription(VersionDescriptionT&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::forward<VersionDescriptionT>(value); }
123 template<typename VersionDescriptionT = Aws::String>
124 CreateLaunchTemplateVersionRequest& WithVersionDescription(VersionDescriptionT&& value) { SetVersionDescription(std::forward<VersionDescriptionT>(value)); return *this;}
126
128
131 inline const RequestLaunchTemplateData& GetLaunchTemplateData() const { return m_launchTemplateData; }
132 inline bool LaunchTemplateDataHasBeenSet() const { return m_launchTemplateDataHasBeenSet; }
133 template<typename LaunchTemplateDataT = RequestLaunchTemplateData>
134 void SetLaunchTemplateData(LaunchTemplateDataT&& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = std::forward<LaunchTemplateDataT>(value); }
135 template<typename LaunchTemplateDataT = RequestLaunchTemplateData>
136 CreateLaunchTemplateVersionRequest& WithLaunchTemplateData(LaunchTemplateDataT&& value) { SetLaunchTemplateData(std::forward<LaunchTemplateDataT>(value)); return *this;}
138
140
148 inline bool GetResolveAlias() const { return m_resolveAlias; }
149 inline bool ResolveAliasHasBeenSet() const { return m_resolveAliasHasBeenSet; }
150 inline void SetResolveAlias(bool value) { m_resolveAliasHasBeenSet = true; m_resolveAlias = value; }
151 inline CreateLaunchTemplateVersionRequest& WithResolveAlias(bool value) { SetResolveAlias(value); return *this;}
153 private:
154
155 bool m_dryRun{false};
156 bool m_dryRunHasBeenSet = false;
157
159 bool m_clientTokenHasBeenSet = true;
160
161 Aws::String m_launchTemplateId;
162 bool m_launchTemplateIdHasBeenSet = false;
163
164 Aws::String m_launchTemplateName;
165 bool m_launchTemplateNameHasBeenSet = false;
166
167 Aws::String m_sourceVersion;
168 bool m_sourceVersionHasBeenSet = false;
169
170 Aws::String m_versionDescription;
171 bool m_versionDescriptionHasBeenSet = false;
172
173 RequestLaunchTemplateData m_launchTemplateData;
174 bool m_launchTemplateDataHasBeenSet = false;
175
176 bool m_resolveAlias{false};
177 bool m_resolveAliasHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace EC2
182} // namespace Aws
CreateLaunchTemplateVersionRequest & WithResolveAlias(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateLaunchTemplateVersionRequest & WithLaunchTemplateData(LaunchTemplateDataT &&value)
CreateLaunchTemplateVersionRequest & WithSourceVersion(SourceVersionT &&value)
CreateLaunchTemplateVersionRequest & WithVersionDescription(VersionDescriptionT &&value)
CreateLaunchTemplateVersionRequest & WithLaunchTemplateName(LaunchTemplateNameT &&value)
CreateLaunchTemplateVersionRequest & WithLaunchTemplateId(LaunchTemplateIdT &&value)
CreateLaunchTemplateVersionRequest & WithDryRun(bool value)
CreateLaunchTemplateVersionRequest & WithClientToken(ClientTokenT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String