AWS SDK for C++  1.9.67
AWS SDK for C++
DeleteLaunchTemplateVersionsRequest.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 "DeleteLaunchTemplateVersions"; }
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 DeleteLaunchTemplateVersionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
71 
72 
77  inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; }
78 
83  inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
84 
89  inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
90 
95  inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
96 
101  inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
102 
107  inline DeleteLaunchTemplateVersionsRequest& WithLaunchTemplateId(const Aws::String& value) { SetLaunchTemplateId(value); return *this;}
108 
113  inline DeleteLaunchTemplateVersionsRequest& WithLaunchTemplateId(Aws::String&& value) { SetLaunchTemplateId(std::move(value)); return *this;}
114 
119  inline DeleteLaunchTemplateVersionsRequest& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
120 
121 
126  inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
127 
132  inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
133 
138  inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
139 
144  inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
145 
150  inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
151 
156  inline DeleteLaunchTemplateVersionsRequest& WithLaunchTemplateName(const Aws::String& value) { SetLaunchTemplateName(value); return *this;}
157 
162  inline DeleteLaunchTemplateVersionsRequest& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;}
163 
168  inline DeleteLaunchTemplateVersionsRequest& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
169 
170 
174  inline const Aws::Vector<Aws::String>& GetVersions() const{ return m_versions; }
175 
179  inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
180 
184  inline void SetVersions(const Aws::Vector<Aws::String>& value) { m_versionsHasBeenSet = true; m_versions = value; }
185 
189  inline void SetVersions(Aws::Vector<Aws::String>&& value) { m_versionsHasBeenSet = true; m_versions = std::move(value); }
190 
194  inline DeleteLaunchTemplateVersionsRequest& WithVersions(const Aws::Vector<Aws::String>& value) { SetVersions(value); return *this;}
195 
199  inline DeleteLaunchTemplateVersionsRequest& WithVersions(Aws::Vector<Aws::String>&& value) { SetVersions(std::move(value)); return *this;}
200 
204  inline DeleteLaunchTemplateVersionsRequest& AddVersions(const Aws::String& value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
205 
209  inline DeleteLaunchTemplateVersionsRequest& AddVersions(Aws::String&& value) { m_versionsHasBeenSet = true; m_versions.push_back(std::move(value)); return *this; }
210 
214  inline DeleteLaunchTemplateVersionsRequest& AddVersions(const char* value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
215 
216  private:
217 
218  bool m_dryRun;
219  bool m_dryRunHasBeenSet;
220 
221  Aws::String m_launchTemplateId;
222  bool m_launchTemplateIdHasBeenSet;
223 
224  Aws::String m_launchTemplateName;
225  bool m_launchTemplateNameHasBeenSet;
226 
227  Aws::Vector<Aws::String> m_versions;
228  bool m_versionsHasBeenSet;
229  };
230 
231 } // namespace Model
232 } // namespace EC2
233 } // namespace Aws
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::WithVersions
DeleteLaunchTemplateVersionsRequest & WithVersions(const Aws::Vector< Aws::String > &value)
Definition: DeleteLaunchTemplateVersionsRequest.h:194
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteLaunchTemplateVersionsRequest.h:31
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::GetVersions
const Aws::Vector< Aws::String > & GetVersions() const
Definition: DeleteLaunchTemplateVersionsRequest.h:174
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::SetVersions
void SetVersions(const Aws::Vector< Aws::String > &value)
Definition: DeleteLaunchTemplateVersionsRequest.h:184
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::WithLaunchTemplateId
DeleteLaunchTemplateVersionsRequest & WithLaunchTemplateId(const char *value)
Definition: DeleteLaunchTemplateVersionsRequest.h:119
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::WithLaunchTemplateName
DeleteLaunchTemplateVersionsRequest & WithLaunchTemplateName(const char *value)
Definition: DeleteLaunchTemplateVersionsRequest.h:168
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::WithLaunchTemplateId
DeleteLaunchTemplateVersionsRequest & WithLaunchTemplateId(const Aws::String &value)
Definition: DeleteLaunchTemplateVersionsRequest.h:107
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::WithLaunchTemplateName
DeleteLaunchTemplateVersionsRequest & WithLaunchTemplateName(Aws::String &&value)
Definition: DeleteLaunchTemplateVersionsRequest.h:162
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::WithLaunchTemplateName
DeleteLaunchTemplateVersionsRequest & WithLaunchTemplateName(const Aws::String &value)
Definition: DeleteLaunchTemplateVersionsRequest.h:156
AWSVector.h
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest
Definition: DeleteLaunchTemplateVersionsRequest.h:23
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::SetLaunchTemplateName
void SetLaunchTemplateName(Aws::String &&value)
Definition: DeleteLaunchTemplateVersionsRequest.h:144
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::GetLaunchTemplateName
const Aws::String & GetLaunchTemplateName() const
Definition: DeleteLaunchTemplateVersionsRequest.h:126
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::SetLaunchTemplateName
void SetLaunchTemplateName(const char *value)
Definition: DeleteLaunchTemplateVersionsRequest.h:150
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::SetVersions
void SetVersions(Aws::Vector< Aws::String > &&value)
Definition: DeleteLaunchTemplateVersionsRequest.h:189
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::SetLaunchTemplateId
void SetLaunchTemplateId(Aws::String &&value)
Definition: DeleteLaunchTemplateVersionsRequest.h:95
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::WithVersions
DeleteLaunchTemplateVersionsRequest & WithVersions(Aws::Vector< Aws::String > &&value)
Definition: DeleteLaunchTemplateVersionsRequest.h:199
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteLaunchTemplateVersionsRequest.h:62
EC2Request.h
AWSString.h
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::LaunchTemplateNameHasBeenSet
bool LaunchTemplateNameHasBeenSet() const
Definition: DeleteLaunchTemplateVersionsRequest.h:132
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::LaunchTemplateIdHasBeenSet
bool LaunchTemplateIdHasBeenSet() const
Definition: DeleteLaunchTemplateVersionsRequest.h:83
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::SetLaunchTemplateName
void SetLaunchTemplateName(const Aws::String &value)
Definition: DeleteLaunchTemplateVersionsRequest.h:138
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::AddVersions
DeleteLaunchTemplateVersionsRequest & AddVersions(const char *value)
Definition: DeleteLaunchTemplateVersionsRequest.h:214
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::DeleteLaunchTemplateVersionsRequest
DeleteLaunchTemplateVersionsRequest()
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::AddVersions
DeleteLaunchTemplateVersionsRequest & AddVersions(Aws::String &&value)
Definition: DeleteLaunchTemplateVersionsRequest.h:209
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::SetLaunchTemplateId
void SetLaunchTemplateId(const Aws::String &value)
Definition: DeleteLaunchTemplateVersionsRequest.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::WithLaunchTemplateId
DeleteLaunchTemplateVersionsRequest & WithLaunchTemplateId(Aws::String &&value)
Definition: DeleteLaunchTemplateVersionsRequest.h:113
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::AddVersions
DeleteLaunchTemplateVersionsRequest & AddVersions(const Aws::String &value)
Definition: DeleteLaunchTemplateVersionsRequest.h:204
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::DeleteLaunchTemplateVersionsRequest::VersionsHasBeenSet
bool VersionsHasBeenSet() const
Definition: DeleteLaunchTemplateVersionsRequest.h:179
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::SetLaunchTemplateId
void SetLaunchTemplateId(const char *value)
Definition: DeleteLaunchTemplateVersionsRequest.h:101
EC2_EXPORTS.h
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteLaunchTemplateVersionsRequest.h:46
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::WithDryRun
DeleteLaunchTemplateVersionsRequest & WithDryRun(bool value)
Definition: DeleteLaunchTemplateVersionsRequest.h:70
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteLaunchTemplateVersionsRequest.h:54
Aws::EC2::Model::DeleteLaunchTemplateVersionsRequest::GetLaunchTemplateId
const Aws::String & GetLaunchTemplateId() const
Definition: DeleteLaunchTemplateVersionsRequest.h:77