AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeleteLaunchTemplateVersionsRequest.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/core/utils/memory/stl/AWSVector.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 "DeleteLaunchTemplateVersions"; }
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 DeleteLaunchTemplateVersionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
52
54
58 inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; }
59 inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
60 inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
61 inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
62 inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
65 inline DeleteLaunchTemplateVersionsRequest& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
67
69
73 inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
74 inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
75 inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
76 inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
77 inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
80 inline DeleteLaunchTemplateVersionsRequest& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
82
84
88 inline const Aws::Vector<Aws::String>& GetVersions() const{ return m_versions; }
89 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
90 inline void SetVersions(const Aws::Vector<Aws::String>& value) { m_versionsHasBeenSet = true; m_versions = value; }
91 inline void SetVersions(Aws::Vector<Aws::String>&& value) { m_versionsHasBeenSet = true; m_versions = std::move(value); }
93 inline DeleteLaunchTemplateVersionsRequest& WithVersions(Aws::Vector<Aws::String>&& value) { SetVersions(std::move(value)); return *this;}
94 inline DeleteLaunchTemplateVersionsRequest& AddVersions(const Aws::String& value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
95 inline DeleteLaunchTemplateVersionsRequest& AddVersions(Aws::String&& value) { m_versionsHasBeenSet = true; m_versions.push_back(std::move(value)); return *this; }
96 inline DeleteLaunchTemplateVersionsRequest& AddVersions(const char* value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
98 private:
99
100 bool m_dryRun;
101 bool m_dryRunHasBeenSet = false;
102
103 Aws::String m_launchTemplateId;
104 bool m_launchTemplateIdHasBeenSet = false;
105
106 Aws::String m_launchTemplateName;
107 bool m_launchTemplateNameHasBeenSet = false;
108
109 Aws::Vector<Aws::String> m_versions;
110 bool m_versionsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace EC2
115} // namespace Aws
DeleteLaunchTemplateVersionsRequest & WithVersions(Aws::Vector< Aws::String > &&value)
DeleteLaunchTemplateVersionsRequest & AddVersions(const char *value)
DeleteLaunchTemplateVersionsRequest & WithLaunchTemplateId(Aws::String &&value)
DeleteLaunchTemplateVersionsRequest & WithLaunchTemplateName(Aws::String &&value)
DeleteLaunchTemplateVersionsRequest & WithDryRun(bool value)
DeleteLaunchTemplateVersionsRequest & AddVersions(const Aws::String &value)
DeleteLaunchTemplateVersionsRequest & AddVersions(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DeleteLaunchTemplateVersionsRequest & WithVersions(const Aws::Vector< Aws::String > &value)
DeleteLaunchTemplateVersionsRequest & WithLaunchTemplateName(const char *value)
DeleteLaunchTemplateVersionsRequest & WithLaunchTemplateId(const Aws::String &value)
DeleteLaunchTemplateVersionsRequest & WithLaunchTemplateId(const char *value)
DeleteLaunchTemplateVersionsRequest & WithLaunchTemplateName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector