AWS SDK for C++  1.9.72
AWS SDK for C++
DeleteLaunchTemplateRequest.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 "DeleteLaunchTemplate"; }
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 DeleteLaunchTemplateRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
70 
71 
76  inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; }
77 
82  inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
83 
88  inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
89 
94  inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
95 
100  inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
101 
106  inline DeleteLaunchTemplateRequest& WithLaunchTemplateId(const Aws::String& value) { SetLaunchTemplateId(value); return *this;}
107 
112  inline DeleteLaunchTemplateRequest& WithLaunchTemplateId(Aws::String&& value) { SetLaunchTemplateId(std::move(value)); return *this;}
113 
118  inline DeleteLaunchTemplateRequest& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
119 
120 
125  inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
126 
131  inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
132 
137  inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
138 
143  inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
144 
149  inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
150 
155  inline DeleteLaunchTemplateRequest& WithLaunchTemplateName(const Aws::String& value) { SetLaunchTemplateName(value); return *this;}
156 
161  inline DeleteLaunchTemplateRequest& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;}
162 
167  inline DeleteLaunchTemplateRequest& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
168 
169  private:
170 
171  bool m_dryRun;
172  bool m_dryRunHasBeenSet;
173 
174  Aws::String m_launchTemplateId;
175  bool m_launchTemplateIdHasBeenSet;
176 
177  Aws::String m_launchTemplateName;
178  bool m_launchTemplateNameHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace EC2
183 } // namespace Aws
Aws::EC2::Model::DeleteLaunchTemplateRequest::WithLaunchTemplateName
DeleteLaunchTemplateRequest & WithLaunchTemplateName(Aws::String &&value)
Definition: DeleteLaunchTemplateRequest.h:161
Aws::EC2::Model::DeleteLaunchTemplateRequest::WithLaunchTemplateId
DeleteLaunchTemplateRequest & WithLaunchTemplateId(const char *value)
Definition: DeleteLaunchTemplateRequest.h:118
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteLaunchTemplateRequest::GetLaunchTemplateName
const Aws::String & GetLaunchTemplateName() const
Definition: DeleteLaunchTemplateRequest.h:125
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteLaunchTemplateRequest::SetLaunchTemplateName
void SetLaunchTemplateName(Aws::String &&value)
Definition: DeleteLaunchTemplateRequest.h:143
Aws::EC2::Model::DeleteLaunchTemplateRequest::LaunchTemplateNameHasBeenSet
bool LaunchTemplateNameHasBeenSet() const
Definition: DeleteLaunchTemplateRequest.h:131
Aws::EC2::Model::DeleteLaunchTemplateRequest::SetLaunchTemplateName
void SetLaunchTemplateName(const Aws::String &value)
Definition: DeleteLaunchTemplateRequest.h:137
Aws::EC2::Model::DeleteLaunchTemplateRequest::SetLaunchTemplateName
void SetLaunchTemplateName(const char *value)
Definition: DeleteLaunchTemplateRequest.h:149
Aws::EC2::Model::DeleteLaunchTemplateRequest::WithLaunchTemplateName
DeleteLaunchTemplateRequest & WithLaunchTemplateName(const Aws::String &value)
Definition: DeleteLaunchTemplateRequest.h:155
Aws::EC2::Model::DeleteLaunchTemplateRequest::WithLaunchTemplateId
DeleteLaunchTemplateRequest & WithLaunchTemplateId(const Aws::String &value)
Definition: DeleteLaunchTemplateRequest.h:106
Aws::EC2::Model::DeleteLaunchTemplateRequest::LaunchTemplateIdHasBeenSet
bool LaunchTemplateIdHasBeenSet() const
Definition: DeleteLaunchTemplateRequest.h:82
Aws::EC2::Model::DeleteLaunchTemplateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DeleteLaunchTemplateRequest::DeleteLaunchTemplateRequest
DeleteLaunchTemplateRequest()
EC2Request.h
Aws::EC2::Model::DeleteLaunchTemplateRequest::GetLaunchTemplateId
const Aws::String & GetLaunchTemplateId() const
Definition: DeleteLaunchTemplateRequest.h:76
AWSString.h
Aws::EC2::Model::DeleteLaunchTemplateRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteLaunchTemplateRequest.h:61
Aws::EC2::Model::DeleteLaunchTemplateRequest
Definition: DeleteLaunchTemplateRequest.h:22
Aws::EC2::Model::DeleteLaunchTemplateRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteLaunchTemplateRequest.h:53
Aws::EC2::Model::DeleteLaunchTemplateRequest::WithLaunchTemplateName
DeleteLaunchTemplateRequest & WithLaunchTemplateName(const char *value)
Definition: DeleteLaunchTemplateRequest.h:167
Aws::EC2::Model::DeleteLaunchTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteLaunchTemplateRequest.h:30
Aws::EC2::Model::DeleteLaunchTemplateRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteLaunchTemplateRequest::WithLaunchTemplateId
DeleteLaunchTemplateRequest & WithLaunchTemplateId(Aws::String &&value)
Definition: DeleteLaunchTemplateRequest.h:112
Aws::EC2::Model::DeleteLaunchTemplateRequest::SetLaunchTemplateId
void SetLaunchTemplateId(const Aws::String &value)
Definition: DeleteLaunchTemplateRequest.h:88
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::DeleteLaunchTemplateRequest::SetLaunchTemplateId
void SetLaunchTemplateId(Aws::String &&value)
Definition: DeleteLaunchTemplateRequest.h:94
Aws::EC2::Model::DeleteLaunchTemplateRequest::WithDryRun
DeleteLaunchTemplateRequest & WithDryRun(bool value)
Definition: DeleteLaunchTemplateRequest.h:69
Aws::EC2::Model::DeleteLaunchTemplateRequest::SetLaunchTemplateId
void SetLaunchTemplateId(const char *value)
Definition: DeleteLaunchTemplateRequest.h:100
EC2_EXPORTS.h
Aws::EC2::Model::DeleteLaunchTemplateRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteLaunchTemplateRequest.h:45