AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteLaunchTemplateVersionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API DeleteLaunchTemplateVersionsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DeleteLaunchTemplateVersions"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
43 inline bool GetDryRun() const { return m_dryRun; }
44 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
45 inline void SetDryRun(bool value) {
46 m_dryRunHasBeenSet = true;
47 m_dryRun = value;
48 }
50 SetDryRun(value);
51 return *this;
52 }
54
56
60 inline const Aws::String& GetLaunchTemplateId() const { return m_launchTemplateId; }
61 inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
62 template <typename LaunchTemplateIdT = Aws::String>
63 void SetLaunchTemplateId(LaunchTemplateIdT&& value) {
64 m_launchTemplateIdHasBeenSet = true;
65 m_launchTemplateId = std::forward<LaunchTemplateIdT>(value);
66 }
67 template <typename LaunchTemplateIdT = Aws::String>
69 SetLaunchTemplateId(std::forward<LaunchTemplateIdT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetLaunchTemplateName() const { return m_launchTemplateName; }
80 inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
81 template <typename LaunchTemplateNameT = Aws::String>
82 void SetLaunchTemplateName(LaunchTemplateNameT&& value) {
83 m_launchTemplateNameHasBeenSet = true;
84 m_launchTemplateName = std::forward<LaunchTemplateNameT>(value);
85 }
86 template <typename LaunchTemplateNameT = Aws::String>
88 SetLaunchTemplateName(std::forward<LaunchTemplateNameT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::Vector<Aws::String>& GetVersions() const { return m_versions; }
99 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
100 template <typename VersionsT = Aws::Vector<Aws::String>>
101 void SetVersions(VersionsT&& value) {
102 m_versionsHasBeenSet = true;
103 m_versions = std::forward<VersionsT>(value);
104 }
105 template <typename VersionsT = Aws::Vector<Aws::String>>
107 SetVersions(std::forward<VersionsT>(value));
108 return *this;
109 }
110 template <typename VersionsT = Aws::String>
112 m_versionsHasBeenSet = true;
113 m_versions.emplace_back(std::forward<VersionsT>(value));
114 return *this;
115 }
117 private:
118 bool m_dryRun{false};
119
120 Aws::String m_launchTemplateId;
121
122 Aws::String m_launchTemplateName;
123
124 Aws::Vector<Aws::String> m_versions;
125 bool m_dryRunHasBeenSet = false;
126 bool m_launchTemplateIdHasBeenSet = false;
127 bool m_launchTemplateNameHasBeenSet = false;
128 bool m_versionsHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace EC2
133} // namespace Aws
DeleteLaunchTemplateVersionsRequest & WithVersions(VersionsT &&value)
DeleteLaunchTemplateVersionsRequest & WithLaunchTemplateId(LaunchTemplateIdT &&value)
DeleteLaunchTemplateVersionsRequest & WithDryRun(bool value)
DeleteLaunchTemplateVersionsRequest & AddVersions(VersionsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DeleteLaunchTemplateVersionsRequest & WithLaunchTemplateName(LaunchTemplateNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector